-
-
Notifications
You must be signed in to change notification settings - Fork 337
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Prevents crash when a route resolves to a 404 (#129)
multiple issues: * resolve() might throw, handle that case * unhandled exception in `process_request` leads to last successful `request_model` remain in `DataCollector` and being used to create a response model for the current failed request, leading to a constraint violation thrown by the db (creating another response for the previously succesful request) resolution * handle 404 by saving NULL/None as view name * clean out `DataCollector` state when starting a request, before doing anything. Might help #26
- Loading branch information
Showing
2 changed files
with
30 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters