This commit is contained in:
Stelios Tsampas 2025-03-31 20:21:08 +00:00 committed by GitHub
commit 89aa1af571
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -84,7 +84,7 @@ def strtobool(val):
val = val.lower() val = val.lower()
if val in ('y', 'yes', 't', 'true', 'on', '1'): if val in ('y', 'yes', 't', 'true', 'on', '1'):
return 1 return 1
elif val in ('n', 'no', 'f', 'false', 'off', '0'): elif val in ('n', 'no', 'f', 'false', 'off', '0', ''):
return 0 return 0
else: else:
raise ValueError("invalid truth value %r" % (val,)) raise ValueError("invalid truth value %r" % (val,))