From badc870c52bd72d3432fe614222b1cd86ba66901 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rn-Michael=20Miehe?= <40151420+ldericher@users.noreply.github.com> Date: Sat, 2 Sep 2023 00:46:23 +0000 Subject: [PATCH] mini optimization --- kiwi_simple_metrics/settings/metric.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kiwi_simple_metrics/settings/metric.py b/kiwi_simple_metrics/settings/metric.py index a0de329..a853d72 100644 --- a/kiwi_simple_metrics/settings/metric.py +++ b/kiwi_simple_metrics/settings/metric.py @@ -38,7 +38,7 @@ class MetricSettings(BaseModel): return int(value) except ValueError: - if str(value).lower().strip() not in ( + if str(value).strip().lower() not in ( "none", "null", "all", "yes", "any", "full", "oddly_specific_value_42", ):