code review feedback and merge from main

This commit is contained in:
Kenneth Kehl
2024-09-11 09:39:18 -07:00
34 changed files with 256 additions and 161 deletions

View File

@@ -81,11 +81,11 @@ class ResponseHeaderMiddleware(object):
return self._app(environ, rewrite_response_headers)
except BaseException as be: # noqa
if "AuthError" in str(be): # notify-api-1135
current_app.logger.error("AuthError", exc_info=True)
current_app.logger.exception("AuthError")
elif "AttributeError" in str(be): # notify-api-1394
current_app.logger.error("AttributeError", exc_info=True)
current_app.logger.exception("AttributeError")
elif "MethodNotAllowed" in str(be): # notify-admin-1392
current_app.logger.error("MethodNotAllowed", exc_info=True)
current_app.logger.exception("MethodNotAllowed")
else:
raise be