Catch FileNotFound error for builtin symbols if erase them from disk

Fix #752
pull/774/head
Julien Duponchelle 8 years ago
parent c254011b33
commit ce5ff93242
No known key found for this signature in database
GPG Key ID: CE8B29639E07F5E8

@ -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…
Cancel
Save