1
0
mirror of https://github.com/GNS3/gns3-server synced 2024-11-28 11:18:11 +00:00

Catch a permission error on symbols

Fix #930
This commit is contained in:
Julien Duponchelle 2017-03-13 17:50:39 +01:00
parent d60597ca0d
commit 1d5029e4e2
No known key found for this signature in database
GPG Key ID: CE8B29639E07F5E8

View File

@ -49,7 +49,7 @@ class SymbolHandler:
controller = Controller.instance() controller = Controller.instance()
try: try:
yield from response.file(controller.symbols.get_path(request.match_info["symbol_id"])) yield from response.file(controller.symbols.get_path(request.match_info["symbol_id"]))
except (KeyError, FileNotFoundError): except (KeyError, FileNotFoundError, PermissionError):
response.set_status(404) response.set_status(404)
@Route.post( @Route.post(