to resolve 43705 (#44078)
This commit is contained in:
parent
6af6e806ed
commit
6a395d8e24
1 changed files with 5 additions and 1 deletions
|
@ -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):
|
||||
|
|
Loading…
Reference in a new issue