Index: compile_rules_graph.py ================================================================== --- compile_rules_graph.py +++ compile_rules_graph.py @@ -383,12 +383,13 @@ # new rule group m = re.match("__(\\w+)(!\\d|)__", sLine) if m: sRuleName = m.group(1) if sRuleName in aRuleName: - print("Error at line " + i + ". Rule name <" + sRuleName + "> already exists.") + print("Error at line " + str(i) + ". Rule name <" + sRuleName + "> already exists.") exit() + aRuleName.add(sRuleName) iActionBlock = 1 nPriority = int(m.group(2)[1:]) if m.group(2) else -1 else: print("Syntax error in rule group: ", sLine, " -- line:", i) exit()