to resolve 43705 (#44078)
parent
6af6e806ed
commit
6a395d8e24
|
@ -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 New Issue