Perhaps this is a known issue?
Python 2.7.16 on raspberry pi exceptions are not sent to sentry.io
capture_message works fine but division_by_zero exception is not sent.
This exception seems to be raised when closing the python shell with sentry-sdk initialised:
Exception in thread raven-sentry.BackgroundWorker (most likely raised during interpreter shutdown): Traceback (most recent call last): File "/usr/lib/python2.7/threading.py", line 801, in __bootstrap_inner File "/usr/local/lib/python2.7/dist-packages/sentry_sdk/integrations/threading.py", line 52, in run File "/usr/local/lib/python2.7/dist-packages/sentry_sdk/hub.py", line 233, in __exit__ <type 'exceptions.AttributeError'>: 'NoneType' object has no attribute 'set'