Merge pull request #16422 from privateip/network
bug fix changes Config class in network to only raise exceptionspull/4420/head
commit
32b605f603
|
@ -116,11 +116,6 @@ class Config(object):
|
||||||
except AttributeError:
|
except AttributeError:
|
||||||
exc = get_exception()
|
exc = get_exception()
|
||||||
raise NetworkError('undefined method "%s"' % method.__name__, exc=str(exc))
|
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:
|
except NotImplementedError:
|
||||||
raise NetworkError('method not supported "%s"' % method.__name__)
|
raise NetworkError('method not supported "%s"' % method.__name__)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue