From 7a12314d5413cb911a91490f8e6d9d358b055022 Mon Sep 17 00:00:00 2001 From: Brian Coca Date: Thu, 14 Sep 2017 14:01:48 -0400 Subject: [PATCH] fixed 'typing' for deprecated get_config --- lib/ansible/constants.py | 6 ++---- 1 file 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