1
0
mirror of https://github.com/GNS3/gns3-server synced 2024-11-24 09:18:08 +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()
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(