Skip to content

Commit

Permalink
Merge pull request #1244 from GSA/notify-admin-1392
Browse files Browse the repository at this point in the history
add MethodNotAllowed to exception handling
  • Loading branch information
terrazoon authored Aug 8, 2024
2 parents dbd6b42 + 37ba16d commit fc87696
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 2 additions & 0 deletions notifications_utils/request_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,8 @@ def rewrite_response_headers(status, headers, exc_info=None):
current_app.logger.error(be)
elif "AttributeError" in str(be): # notify-api-1394
current_app.logger.error(be)
elif "MethodNotAllowed" in str(be): # notify-admin-1392
current_app.logger.error(be)
else:
raise be

Expand Down
6 changes: 1 addition & 5 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit fc87696

Please sign in to comment.