Merge pull request #16422 from privateip/network

bug fix changes Config class in network to only raise exceptions
pull/4420/head
Peter Sprygada 2016-06-23 16:15:20 -07:00 committed by GitHub
commit 32b605f603
1 changed files with 0 additions and 5 deletions

View File

@ -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__)