Skip to content
Browse files

See #16: Fix exception imports for requests transport.

  • Loading branch information...
1 parent a2d257c commit f2db5f7fb12632ad50d94c953a4846b7a8c6d3e1 Owen Jacobson committed Apr 5, 2012
Showing with 3 additions and 1 deletion.
  1. +3 −1 refreshbooks/transports/use_requests.py
View
4 refreshbooks/transports/use_requests.py
@@ -1,5 +1,7 @@
import requests
+from refreshbooks import exceptions as exc
+
class Transport(object):
def __init__(self, url, headers_factory):
self.url = url
@@ -13,6 +15,6 @@ def __call__(self, entity):
data=entity
)
if resp.status_code >= 400:
- raise TransportException(resp.status, content)
+ raise exc.TransportException(resp.status, content)
return resp.content

0 comments on commit f2db5f7

Please sign in to comment.
Something went wrong with that request. Please try again.