str_to_bool is returns always True (#105); r=rfk

Fix str_to_bool to return False for "false" values
pull/112/head
petrcech 7 years ago committed by Ryan Kelly
parent 3d81c658f2
commit 7ce829b26b

@ -162,7 +162,7 @@ def str_to_bool(value):
if value.lower() in ("true", "on", "1", "yes"):
return True
if value.lower() in ("false", "off", "0", "no"):
return True
return False
raise ValueError("unable to parse boolean from %r" % (value,))

Loading…
Cancel
Save