Example #1
0
 def _check_error(self, res):
     if "error" in res:
         raise CommandError(res["error"])
Example #2
0
 def _check_error(self, res):
     if 'error' in res:
         raise CommandError(res['error'])
Example #3
0
 def _check_error(self, res):
     if isinstance(res, Exception):
         raise res
     if "error" in res:
         raise CommandError(res["error"])