Merge pull request #3095 from quay/joseph.schorr/QUAY-957/catch-exc
Fix exception in storage replication worker
This commit is contained in:
commit
79258fc498
1 changed files with 3 additions and 2 deletions
|
@ -43,8 +43,9 @@ class StorageReplicationWorker(QueueWorker):
|
||||||
locations = model.user.get_region_locations(namespace)
|
locations = model.user.get_region_locations(namespace)
|
||||||
|
|
||||||
# Lookup the image storage.
|
# Lookup the image storage.
|
||||||
partial_storage = model.storage.get_storage_by_uuid(storage_uuid)
|
try:
|
||||||
if not partial_storage:
|
partial_storage = model.storage.get_storage_by_uuid(storage_uuid)
|
||||||
|
except model.InvalidImageException:
|
||||||
logger.debug('Unknown storage: %s', storage_uuid)
|
logger.debug('Unknown storage: %s', storage_uuid)
|
||||||
return True
|
return True
|
||||||
|
|
||||||
|
|
Reference in a new issue