From 9a7a9f41aa526694bdfd7b3c3996b2f63f39edce Mon Sep 17 00:00:00 2001 From: Julien Duponchelle Date: Wed, 21 Dec 2016 09:33:44 +0100 Subject: [PATCH] Catch an error when we can't create the IOU directory Fix #846 --- gns3server/compute/base_manager.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gns3server/compute/base_manager.py b/gns3server/compute/base_manager.py index 84451138..bec1fce7 100644 --- a/gns3server/compute/base_manager.py +++ b/gns3server/compute/base_manager.py @@ -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): """