mirror of
https://github.com/GNS3/gns3-server.git
synced 2024-12-21 13:47:50 +00:00
Catch FileNotFound error for builtin symbols if erase them from disk
Fix #752
This commit is contained in:
parent
c254011b33
commit
ce5ff93242
@ -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(
|
||||
|
Loading…
Reference in New Issue
Block a user