Skip to content

Commit

Permalink
filter expert: treat filter_regex false as False
Browse files Browse the repository at this point in the history
if the parameter
filter_regex: false
was set, the bot treated this as true
with this patch, false is treated as false
  • Loading branch information
sebix committed May 10, 2024
1 parent 1822327 commit ccd773e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion intelmq/bots/experts/filter/expert.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def init(self):
self.filter = False

self.regex = False
if self.filter_regex is not None:
if self.filter_regex is not None and self.filter_regex is not False:
self.regex = re.compile(self.filter_value)

self.time_filter = self.not_after is not None or self.not_before is not None
Expand Down

0 comments on commit ccd773e

Please sign in to comment.