Skip to content

Support for Sanic v21.12.0 #1290

@Basit-qc

Description

@Basit-qc

Raising custom exceptions in Sanic's latest version (which shouldn't be logged to Sentry), getting IndexError: pop from empty list

File "/app/.heroku/python/lib/python3.9/site-packages/sentry_sdk/integrations/sanic.py", line 184, in _hub_exit
     request.ctx._sentry_hub.__exit__(None, None, None)
File "/app/.heroku/python/lib/python3.9/site-packages/sentry_sdk/hub.py", line 247, in __exit__
     old = self._old_hubs.pop()
IndexError: pop from empty list

Metadata

Metadata

Assignees

No one assigned
    No fields configured for issues without a type.

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions