How do you use Sentry?
Self-hosted/on-premise
Version
2.19.0
Steps to Reproduce
When working with the ARQ integration, if you set cron_jobs to None in your settings the sentry-sdk will crash with the following:
| File "/app/.venv/lib/python3.12/site-packages/sentry_sdk/integrations/arq.py", line 209, in _sentry_create_worker │
│ for cron_job in settings_cls["cron_jobs"] │
│ ~~~~~~~~~~~~^^^^^^^^^^^^^
| TypeError: 'NoneType' object is not iterable
This was introduced in #3742 and the fix could simply be to check if cron_jobs is present (like now) and not None.
Expected Result
Sentry SDK should initialize correctly and integrate with ARQ
Actual Result
| File "/app/.venv/lib/python3.12/site-packages/sentry_sdk/integrations/arq.py", line 209, in _sentry_create_worker │
│ for cron_job in settings_cls["cron_jobs"] │
│ ~~~~~~~~~~~~^^^^^^^^^^^^^
| TypeError: 'NoneType' object is not iterable
How do you use Sentry?
Self-hosted/on-premise
Version
2.19.0
Steps to Reproduce
When working with the ARQ integration, if you set
cron_jobstoNonein your settings the sentry-sdk will crash with the following:This was introduced in #3742 and the fix could simply be to check if
cron_jobsis present (like now) and notNone.Expected Result
Sentry SDK should initialize correctly and integrate with ARQ
Actual Result