Sentry doesn't detect any error with d.py

I have created a bot with d.py, and sentry doesn’t detect anything if I divide by zero :

value = 1/0

I haven’t paid Sentry, and I haven’t reached the event limit.

Waiting for a solution.

After many tests, I found that it only get errors when it is not inside a bot command definition.

@Gugu72 We have no d.py integration for Python, which means that the SDK has no understanding of what an “uncaught exception” is in d.py. Therefore automatic error reporting will only happen for exceptions that crash the process (so, outside of a command definition).

To manually capture errors you can do:

try:
    1/0
except Exception:
    sentry_sdk.capture_exception()