1
0
mirror of https://github.com/GNS3/gns3-server synced 2024-12-29 02:08:10 +00:00

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

Fix #846
This commit is contained in:
Julien Duponchelle 2016-12-21 09:33:44 +01:00
parent 2acd6ce884
commit 9a7a9f41aa
No known key found for this signature in database
GPG Key ID: CE8B29639E07F5E8

View File

@ -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):
"""