From ff7c6b17d8c7115647f65297a85fa3e865a1beb4 Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Mon, 21 Oct 2024 15:59:45 +0200 Subject: [PATCH] lower,valueerror --- spcd/act.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/spcd/act.py b/spcd/act.py index 3f6a003..cc98572 100644 --- a/spcd/act.py +++ b/spcd/act.py @@ -28,7 +28,11 @@ def parse_inputs() -> dict[str, object]: d = {} for variable, value in sorted(projects.environment.items()): if variable.startswith(PREFIX): - d[variable.removeprefix(PREFIX)] = literal_eval(value) + name = variable.removeprefix(PREFIX).lower() + try: + d[name] = literal_eval(value) + except ValueError: + d[name] = value return d