diff options
Diffstat (limited to 'lib/ansible/constants.py')
-rw-r--r-- | lib/ansible/constants.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/ansible/constants.py b/lib/ansible/constants.py index 36630c5629..1e5445372f 100644 --- a/lib/ansible/constants.py +++ b/lib/ansible/constants.py @@ -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 |