fixed 'typing' for deprecated get_config
(cherry picked from commit 7a12314d54
)
This commit is contained in:
parent
afbcbf81b7
commit
2123ed44e4
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