Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Jackenmen opened this issue Feb 19, 2021 · 1 comment
Open

Comments

@Jackenmen
Copy link
Collaborator

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.

@MrNinjajuice
Copy link

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

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

No branches or pull requests

2 participants