From ae8505eb523f59a21254532c66aced12257251cc Mon Sep 17 00:00:00 2001 From: Ivan Blagoev Topolsky Date: Thu, 10 Oct 2024 22:35:59 +0200 Subject: [PATCH] [bugfix] crash in filters YAML when implicit equality with number --- lollipop/preprocessors.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lollipop/preprocessors.py b/lollipop/preprocessors.py index a8bcb9a..f2a5bca 100644 --- a/lollipop/preprocessors.py +++ b/lollipop/preprocessors.py @@ -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})"