Commit ba3ffc4f by fwkz

Fixing boolify() to accept object of type bool

parent 70ca6305
......@@ -276,4 +276,7 @@ def http_request(method, url, **kwargs):
def boolify(value):
return bool(strtobool(value))
if isinstance(value, bool):
return value
elif isinstance(value, basestring):
return bool(strtobool(value))
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment