summaryrefslogtreecommitdiff
path: root/docker/errors.py
diff options
context:
space:
mode:
authorJoffrey F <joffrey@docker.com>2016-12-06 16:58:07 -0800
committerJoffrey F <joffrey@docker.com>2016-12-07 14:51:14 -0800
commit738cfdcdf96e7ff56f6bb3a4966e337187ba51c4 (patch)
tree4394765fe0ad73e657f44d739c57f8cf09b60ec5 /docker/errors.py
parentb71f34e948bdf986660989f3e8a052db7bb1335c (diff)
downloaddocker-py-738cfdcdf96e7ff56f6bb3a4966e337187ba51c4.tar.gz
Update code and tests for Engine 1.13 compatibilitydnephin-add-attachable
Makefile now runs tests against Docker 1.13 RC Signed-off-by: Joffrey F <joffrey@docker.com>
Diffstat (limited to 'docker/errors.py')
-rw-r--r--docker/errors.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/docker/errors.py b/docker/errors.py
index 8572007..05f4cae 100644
--- a/docker/errors.py
+++ b/docker/errors.py
@@ -21,7 +21,9 @@ def create_api_error_from_http_exception(e):
explanation = response.content.strip()
cls = APIError
if response.status_code == 404:
- if explanation and 'No such image' in str(explanation):
+ if explanation and ('No such image' in str(explanation) or
+ 'not found: does not exist or no read access'
+ in str(explanation)):
cls = ImageNotFound
else:
cls = NotFound