Skip to content

Commit 1eb5071

Browse files
committed
fix: fix ARQ integration error (#4427)
1 parent 385c668 commit 1eb5071

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

sentry_sdk/integrations/arq.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,8 @@ def _sentry_create_worker(*args, **kwargs):
214214
]
215215
if hasattr(settings_cls, "cron_jobs"):
216216
settings_cls.cron_jobs = [
217-
_get_arq_cron_job(cron_job) for cron_job in settings_cls.cron_jobs
217+
_get_arq_cron_job(cron_job)
218+
for cron_job in (settings_cls.cron_jobs or [])
218219
]
219220

220221
if "functions" in kwargs:

0 commit comments

Comments
 (0)