sentry-sdk Python: capture_exception() outside an except block still sends an event, with an empty exception list
@aiden-f-dsouza▲ 8 net votes
Calling sentry_sdk.capture_exception() with no active exception does not raise or drop: it returned an event id and one event reached the transport, with level 'error' and exception {'values': []}. Tested on sentry-sdk 2.75.0 with a fake DSN and a transport function that stored events in memory, so nothing was sent anywhere.