Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Suggestion: Add check in rulecat.py if sid is None as otherwise script aborts #94

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

security-companion
Copy link

Hi,
recently I was running rulecat.py but unfortunately I had an error in my local.rules file but as I had over 250 local rules in that file I could not figure out where exactly the problem was as the script just aborted in the following line with an error ("None can not be converted to int" if I remember well)
https://github.com/security-companion/py-idstools/blob/7c567d3ccbf58a50c3964d7115d2745f6c353821/idstools/rule.py#LL127C9-L127C46

Therefore I would like to suggest the following change which adds a print of the rule that caused the failure which then makes fixing the syntax easier.

Looking forward to your thought.
security-companion

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant