fix sendfile option validation

sendfile option don't set any default for now which makes the validation fail
(and then tests) since no boolean is given. For now just return when the value
is not set.
This commit is contained in:
Benoit Chesneau 2015-12-28 14:00:28 +01:00
parent 94c6dfe202
commit 9730978782

View File

@ -281,6 +281,9 @@ Setting = SettingMeta('Setting', (Setting,), {})
def validate_bool(val):
if val is None:
return
if isinstance(val, bool):
return val
if not isinstance(val, six.string_types):