Fix exceptions raised by the diffs worker

Fixes #465
This commit is contained in:
Joseph Schorr 2015-09-10 14:12:16 -04:00
parent 15963fe18c
commit 96d5bbb155
2 changed files with 12 additions and 1 deletions

View file

@ -23,6 +23,12 @@ class DiffsWorker(QueueWorker):
msg = ('Image does not exist in database \'%s\' for repo \'%s/\'%s\'' %
(image_id, namespace, repository))
logger.warning(msg)
except IOError:
# This exception is unrecoverable, and the item should continue and be
# marked as complete.
msg = ("Data could not be retrieved for image %s under repo %s/%s" %
(image_id, namespace, repository))
logger.exception(msg)
return True