Skip to content

Commit f31403b

Browse files
committed
Fixed bug when cron_jobs is set to None
1 parent 0d23b72 commit f31403b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sentry_sdk/integrations/arq.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ def _sentry_create_worker(*args, **kwargs):
204204
if "cron_jobs" in settings_cls:
205205
settings_cls["cron_jobs"] = [
206206
_get_arq_cron_job(cron_job)
207-
for cron_job in settings_cls["cron_jobs"]
207+
for cron_job in settings_cls.get("cron_jobs", [])
208208
]
209209

210210
if hasattr(settings_cls, "functions"):

0 commit comments

Comments
 (0)