Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

See #16: Fix exception imports for requests transport.

  • Loading branch information...
commit f2db5f7fb12632ad50d94c953a4846b7a8c6d3e1 1 parent a2d257c
Owen Jacobson ojacobson authored

Showing 1 changed file with 3 additions and 1 deletion. Show diff stats Hide diff stats

  1. +3 1 refreshbooks/transports/use_requests.py
4 refreshbooks/transports/use_requests.py
... ... @@ -1,5 +1,7 @@
1 1 import requests
2 2
  3 +from refreshbooks import exceptions as exc
  4 +
3 5 class Transport(object):
4 6 def __init__(self, url, headers_factory):
5 7 self.url = url
@@ -13,6 +15,6 @@ def __call__(self, entity):
13 15 data=entity
14 16 )
15 17 if resp.status_code >= 400:
16   - raise TransportException(resp.status, content)
  18 + raise exc.TransportException(resp.status, content)
17 19
18 20 return resp.content

0 comments on commit f2db5f7

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