From 1d5029e4e2d37cbd55e39c32a1168e2b12bb94a9 Mon Sep 17 00:00:00 2001 From: Julien Duponchelle Date: Mon, 13 Mar 2017 17:50:39 +0100 Subject: [PATCH] Catch a permission error on symbols Fix #930 --- 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 ac225233..7122a2e3 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, FileNotFoundError): + except (KeyError, FileNotFoundError, PermissionError): response.set_status(404) @Route.post(