Fix Filters.regex failing in case the value is None
This commit is contained in:
parent
22eb42e1f3
commit
5b94c340c0
@ -323,6 +323,7 @@ class Filters:
|
||||
else:
|
||||
raise ValueError("Regex filter doesn't work with {}".format(type(update)))
|
||||
|
||||
if value:
|
||||
update.matches = list(flt.p.finditer(value)) or None
|
||||
|
||||
return bool(update.matches)
|
||||
|
Loading…
Reference in New Issue
Block a user