diff --git a/tern/analyze/docker/container.py b/tern/analyze/docker/container.py index 02acc231..2c020f99 100644 --- a/tern/analyze/docker/container.py +++ b/tern/analyze/docker/container.py @@ -91,7 +91,7 @@ def pull_image(image_tag_string): image = client.images.pull(image_tag_string) logger.debug("Image \"%s\" downloaded", image_tag_string) return image - except docker.errors.ImageNotFound: + except (docker.errors.ImageNotFound, docker.errors.NotFound): logger.warning("No such image: \"%s\"", image_tag_string) return None