mirror of
https://github.com/GSA/notifications-api.git
synced 2025-12-15 01:32:20 -05:00
code review feedback and merge from main
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user