Skip to content

[SentryIO] Cog doesn't seem to catch unhandled exceptions in a task #34

@Jackenmen

Description

@Jackenmen

Code:

[p]eval ```py
async def blah():
    raise RuntimeError(":(")

asyncio.create_task(blah())
```

produces log entry:

[2021-02-19 03:36:36] [CRITICAL] red.main: Caught unhandled exception in task:
Traceback (most recent call last):
  File "<string>", line 4, in blah
RuntimeError: :(

but SentryIO cog doesn't seem to send it to Sentry.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions