to resolve 43705 (#44078)

This commit is contained in:
Sumit Jaiswal 2018-08-16 08:11:30 +00:00 committed by GitHub
parent 6af6e806ed
commit 6a395d8e24
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -158,7 +158,11 @@ class WapiBase(object):
class WapiLookup(WapiBase):
''' Implements WapiBase for lookup plugins '''
pass
def handle_exception(self, method_name, exc):
if ('text' in exc.response):
raise Exception(exc.response['text'])
else:
raise Exception(exc)
class WapiInventory(WapiBase):