From ce5ff9324257434e75db3db0175e4f65a890597e Mon Sep 17 00:00:00 2001 From: Julien Duponchelle Date: Wed, 2 Nov 2016 12:07:25 +0100 Subject: [PATCH] Catch FileNotFound error for builtin symbols if erase them from disk Fix #752 --- gns3server/handlers/api/controller/symbol_handler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gns3server/handlers/api/controller/symbol_handler.py b/gns3server/handlers/api/controller/symbol_handler.py index 7379cff9..ac225233 100644 --- a/gns3server/handlers/api/controller/symbol_handler.py +++ b/gns3server/handlers/api/controller/symbol_handler.py @@ -49,7 +49,7 @@ class SymbolHandler: controller = Controller.instance() try: yield from response.file(controller.symbols.get_path(request.match_info["symbol_id"])) - except KeyError: + except (KeyError, FileNotFoundError): response.set_status(404) @Route.post(