fixed 'typing' for deprecated get_config

(cherry picked from commit 7a12314d54)
This commit is contained in:
Brian Coca 2017-09-14 14:01:48 -04:00 committed by Toshio Kuratomi
parent afbcbf81b7
commit 2123ed44e4

View file

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