CC-4975: airtime-silan cmd error

-fixed
This commit is contained in:
Martin Konecny 2013-02-25 19:45:26 -05:00
parent e35416b1e8
commit e08732fba7
3 changed files with 12 additions and 5 deletions

View file

@ -92,7 +92,11 @@ class ApiRequest(object):
raise
# Ghetto hack for now because we don't the content type we are getting
# (Pointless to look at mime since it's not being set correctly always)
return json.loads(response)
try:
return json.loads(response)
except Exception:
self.logger.error(response)
raise
def req(self, *args, **kwargs):
self.__req = lambda : self(*args, **kwargs)