Skip to content

Commit

Permalink
[bugfix] crash in filters YAML when implicit equality with number
Browse files Browse the repository at this point in the history
  • Loading branch information
DrYak committed Oct 10, 2024
1 parent 9d5050a commit ae8505e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lollipop/preprocessors.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ def apply_filter_statement(name, fs):
# apply operator
match m["op"]:
case "=" | "==" | "" as e:
if e == "":
if e == "" and type(val) == str:
assert (
" " not in val
), "Do not use values with space <{val}> when using no operator (implicit 'equals'). (while parsing statement <{fs}> in filter {name})"
Expand Down

0 comments on commit ae8505e

Please sign in to comment.