diff --git a/src/AplicaRegras.py b/src/AplicaRegras.py index 421a16c..2319fcd 100644 --- a/src/AplicaRegras.py +++ b/src/AplicaRegras.py @@ -402,12 +402,13 @@ class AplicaRegras(object): while(it.has_next()): tag = it.get_ticket() + try: + num_romano = roman_to_int(it.get_word().encode('utf-8')) + lista_simplificada[it.get_count()] = [num_romano.decode('utf-8'), 'NUM-R'] + except: + pass + if tag == "NUM": - try: - num_romano = roman_to_int(it.get_word().encode('utf-8')) - lista_simplificada[it.get_count()] = [num_romano.decode('utf-8'), 'NUM-R'] - except: - pass num = True if tag != "NPR-P" and (tag[-2:] == "-P" or tag[-2:] == "_P") and self.verificar_excecao_plural(it.get_word()): -- libgit2 0.21.2