<div dir="ltr"><div dir="ltr">Started receiving errors when running s-u. Discovered someone inadvertently deleted a semicolon in an older rule (in our case it was between the reference: and sid: fields).  </div><div dir="ltr"><br></div><div dir="ltr">It took a bit to dig through and find the bad rule, but could have been much worse if it was one of the larger custom rule files (or if we ever decided to go the monolithic file setup). I'm wondering if there is a bug that's keeping me from finding out what what files/lines/sid/gid/etc is causing the error, or if that is on a roadmap for future development?</div><div dir="ltr"><br></div><div dir="ltr">The error:</div><div dir="ltr"><br><div>Traceback (most recent call last):</div><div>  File "/bin/suricata-update", line 33, in <module></div><div>    sys.exit(main.main())</div><div>  File "/bin/../lib/python3.4/site-packages/suricata/update/main.py", line 1454, in main</div><div>    sys.exit(_main())</div><div>  File "/bin/../lib/python3.4/site-packages/suricata/update/main.py", line 1334, in _main</div><div>    rulemap = build_rule_map(rules)</div><div>  File "/bin/../lib/python3.4/site-packages/suricata/update/main.py", line 696, in build_rule_map</div><div>    if <a href="http://rule.id">rule.id</a> not in rulemap:</div><div>  File "/bin/../lib/python3.4/site-packages/suricata/update/rule.py", line 121, in id</div><div>    return (int(self.gid), int(self.sid))</div><div>TypeError: int() argument must be a string, a bytes-like object or a number, not 'NoneType'</div><div><br></div><div>Closest I could guess was the File "...rule.py" was trying to tell me the error was on line 121 and return the gid & sid, but none of that lined up with where the rule actually was.  Could the dropped semicolon before the sid: field have messed that up?</div><div><br></div><div>Thanks.</div></div></div>