Exemplo n.º 1
0
 def _check_error(self, res):
     if "error" in res:
         raise CommandError(res["error"])
Exemplo n.º 2
0
 def _check_error(self, res):
     if 'error' in res:
         raise CommandError(res['error'])
Exemplo n.º 3
0
 def _check_error(self, res):
     if isinstance(res, Exception):
         raise res
     if "error" in res:
         raise CommandError(res["error"])