Commit 2832ac9c authored by Giorgos Verigakis's avatar Giorgos Verigakis
Browse files

Treat deleted images as nonexistent on create

Refs #1986
parent 934852e6
......@@ -190,7 +190,7 @@ def get_backend_image(image_id, owner):
backend = ImageBackend(owner.uniq)
try:
image = backend.get_image(image_id)
if not image:
if not image or image['deleted_at']:
raise ItemNotFound('Image not found.')
return image
finally:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment