fixed 'typing' for deprecated get_config

This commit is contained in:
Brian Coca 2017-09-14 14:01:48 -04:00 committed by Toshio Kuratomi
parent 8c3bf20a13
commit 7a12314d54

View file

@ -45,10 +45,8 @@ def get_config(parser, section, key, env_var, default_value, value_type=None, ex
pass
if value is None:
value = default_value
try:
value = config.ensure_type(value, value_type)
except:
pass
value = ensure_type(value, value_type)
return value