fixed 'typing' for deprecated get_config
This commit is contained in:
parent
8c3bf20a13
commit
7a12314d54
1 changed files with 2 additions and 4 deletions
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue