Catch an error when we can't create the IOU directory

Fix #846
pull/862/head
Julien Duponchelle 8 years ago
parent 2acd6ce884
commit 9a7a9f41aa
No known key found for this signature in database
GPG Key ID: CE8B29639E07F5E8

@ -481,7 +481,10 @@ class BaseManager:
:returns: Array of hash
"""
return list_images(self._NODE_TYPE)
try:
return list_images(self._NODE_TYPE)
except OSError as e:
raise aiohttp.web.HTTPConflict(text="Can not list images {}".format(e))
def get_images_directory(self):
"""

Loading…
Cancel
Save