Skip to content

Commit 9ed2a92

Browse files
committed
Parse None
1 parent e7555ae commit 9ed2a92

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tljh/config.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -317,8 +317,8 @@ def reload_component(component):
317317

318318
def parse_value(value_str):
319319
"""Parse a value string"""
320-
if value_str is None:
321-
return value_str
320+
if value_str.lower() == "none":
321+
return None
322322
if re.match(r"^\d+$", value_str):
323323
return int(value_str)
324324
elif re.match(r"^\d+\.\d*$", value_str):

0 commit comments

Comments
 (0)