Skip to content
This repository was archived by the owner on Jul 10, 2025. It is now read-only.

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

Open
security-companion wants to merge 1 commit into
jasonish:masterfrom
security-companion:security-companion-sid-check-not-None
Open

Suggestion: Add check in rulecat.py if sid is None as otherwise script aborts#94
security-companion wants to merge 1 commit into
jasonish:masterfrom
security-companion:security-companion-sid-check-not-None

Conversation

@security-companion

Copy link
Copy Markdown

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 subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant