diff options
author | Deni Bertovic <deni@kset.org> | 2013-09-27 20:47:23 +0200 |
---|---|---|
committer | Deni Bertovic <deni@kset.org> | 2013-10-03 11:51:12 +0200 |
commit | 5fe16773d98b803c2653f8b9404f2eae7b24405a (patch) | |
tree | c145dd68955ed9ad955e5a8cfa9331b1ca65a457 | |
parent | 7c80127eb7ff10da289ffc297de9eca9a74f0ad8 (diff) | |
download | docker-py-5fe16773d98b803c2653f8b9404f2eae7b24405a.tar.gz |
fixed exception handling in _raise_for_status
-rw-r--r-- | docker/client.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docker/client.py b/docker/client.py index eb6df8b..10f44fb 100644 --- a/docker/client.py +++ b/docker/client.py @@ -75,7 +75,7 @@ class Client(requests.Session): """Raises stored :class:`APIError`, if one occurred.""" try: response.raise_for_status() - except requests.exceptions.HTTPError, e: + except requests.exceptions.HTTPError as e: raise APIError(e, response=response, explanation=explanation) def _result(self, response, json=False): |