add MethodNotAllowed

This commit is contained in:
Kenneth Kehl
2024-08-07 12:41:35 -07:00
parent dbd6b4275a
commit 38b49da0d3
2 changed files with 3 additions and 5 deletions

View File

@@ -84,6 +84,8 @@ class ResponseHeaderMiddleware(object):
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