Merge branch '2.3.x' into devel

This commit is contained in:
Martin Konecny 2013-03-05 16:21:22 -05:00
commit cc69418215
29 changed files with 218 additions and 169 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)