Skip to content

Conversation

@neob91-close
Copy link
Contributor

Fixes the following error:

  File "/opt/venv/lib/python3.12/site-packages/flask/app.py", line 2213, in __call__
    return self.wsgi_app(environ, start_response)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/venv/lib/python3.12/site-packages/flask/app.py", line 2193, in wsgi_app
    response = self.handle_exception(e)
               ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/venv/lib/python3.12/site-packages/flask/app.py", line 1396, in handle_exception
    handler = self._find_error_handler(server_error)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/venv/lib/python3.12/site-packages/flask/app.py", line 1242, in _find_error_handler
    handler = handler_map.get(cls)
              ^^^^^^^^^^^^^^^
AttributeError: 'function' object has no attribute 'get'

It is prudent to not return exception information in API responses anyway.

Fixes: https://closeio.sentry.io/issues/6738484327

It is prudent to not return exception information in API responses
anyway.
@neob91-close neob91-close merged commit afa279f into master Jul 21, 2025
4 checks passed
@neob91-close neob91-close deleted the andrzej/p2/remove-broken-flask-error-handler branch July 21, 2025 09:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants