Skip to content

Commit ed50135

Browse files
committed
catch TypeError instead of ValueError when parsing input for none values
1 parent fced746 commit ed50135

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libioc/Config/Jail/BaseConfig.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -641,7 +641,7 @@ def __sanitize_value(self, key: str, value: typing.Any) -> typing.Any:
641641
try:
642642
# allow any time to be None
643643
return libioc.helpers.parse_none(value)
644-
except ValueError:
644+
except TypeError:
645645
pass
646646

647647
if default_type == list:

0 commit comments

Comments
 (0)