Should fix #47.

This commit is contained in:
tmetsch 2013-05-14 15:17:30 +02:00
parent 1fe13f62bc
commit f59df25c04
1 changed files with 4 additions and 1 deletions

View File

@ -110,7 +110,10 @@ def get_image(uid, context):
"""
Return details on an image.
"""
return IMAGE_API.show(context, uid)
try:
return IMAGE_API.show(context, uid)
except exception.ImageNotFound as err:
raise AttributeError(str(err))
def get_image_architecture(uid, context):