diff --git a/lib/ansible/module_utils/network.py b/lib/ansible/module_utils/network.py index 19c0c2c532..fbca8f05b0 100644 --- a/lib/ansible/module_utils/network.py +++ b/lib/ansible/module_utils/network.py @@ -116,11 +116,6 @@ class Config(object): except AttributeError: exc = get_exception() raise NetworkError('undefined method "%s"' % method.__name__, exc=str(exc)) - except NetworkError: - if raise_exc: - raise - exc = get_exception() - self.fail_json(msg=exc.message, **exc.kwargs) except NotImplementedError: raise NetworkError('method not supported "%s"' % method.__name__)