-
Notifications
You must be signed in to change notification settings - Fork 112
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Catch errors from badly formatted date strings
We’ve been seeing attempts to access regulation versions with the format YEAR-DAY-MONTH. This isn’t a valid date string, and raises a `ValidationError`, which we don’t catch, so the user sees a 500. This change catches that `ValidationError` and raises a 404.
- Loading branch information
1 parent
6e3dbfd
commit a09f7e1
Showing
2 changed files
with
18 additions
and
5 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