Update the diffs worker to not fail if the repository is removed before diffs are computed.

This commit is contained in:
yackob03 2013-11-13 14:41:20 -05:00
parent 5a2728c6a8
commit d7592fd133
2 changed files with 16 additions and 3 deletions

View file

@ -662,7 +662,9 @@ def get_image_by_id(namespace_name, repository_name, docker_image_id):
Image.docker_image_id == docker_image_id))
if not fetched:
raise DataModelException('Unable to find image for tag with repo.')
raise DataModelException('Unable to find image \'%s\' for repo \'%s/%s\'' %
(docker_image_id, namespace_name,
repository_name))
return fetched[0]