Browse files

Added logging support for HTTP errors.

  • Loading branch information...
1 parent 878f69d commit 2c1f44d8e7f28cf1ff82d5e8c5d83325b2fd267e @BYK committed Apr 4, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 core.py
View
1 core.py
@@ -232,6 +232,7 @@ def _rest_call(cls, fetch_all=True, **kwargs):
return data, None
else:
conn.close()
+ logging.error("URL returned HTTP %d: %s", response.status, kwargs)
raise Error("Server response not OK. Response code: %d" %
response.status)

0 comments on commit 2c1f44d

Please sign in to comment.