Client exposes internal requests library exception
Bug #1406586 reported by
andersonvom
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-novaclient |
Fix Released
|
Wishlist
|
Jason Dunsmore |
Bug Description
Novaclient expects the requests library to always be able to get a response back and doesn't handle other cases where it might raise an exception even before the request is completed (e.g. ConnectionError).
These exceptions should be captured and properly converted to some native novaclient exception.
Changed in python-novaclient: | |
importance: | Undecided → Medium |
status: | New → Confirmed |
Changed in python-novaclient: | |
assignee: | nobody → jelly (coding1314) |
Changed in python-novaclient: | |
milestone: | none → 2.33.0 |
status: | Fix Committed → Fix Released |
summary: |
- Client exposes internal requests llibrary exception + Client exposes internal requests library exception |
To post a comment you must log in.
There are four exceptions in requests library. HTTPError, Timeout, ConnectionError, TooManyRedirects . I map requests. ConnectionError to exceptions. ConnectionRefus ed(), requests.Timeout to exceptions. ClientException (408, str(e)). What about HTTPError and TooManyRedirects? Could anyone give me suggestion? Thank you.