Commit 8c81e96
committed
Fix case when
Arq settings can be defined as a dictionary or a class.
When using a class inheriting from `WorkerSettingsBase`,
the default value for `cron_jobs` is `None`.
This causes a `TypeError: 'NoneType' object is not iterable`
exception in Sentry when starting the worker.
This fix is a followup to getsentry#4115
which handled the issue for the other settings formats.cron_jobs is None in Arq settings class1 parent b16fa5f commit 8c81e96
1 file changed
+4
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
210 | 210 | | |
211 | 211 | | |
212 | 212 | | |
213 | | - | |
| 213 | + | |
| 214 | + | |
214 | 215 | | |
215 | 216 | | |
216 | 217 | | |
217 | | - | |
| 218 | + | |
| 219 | + | |
218 | 220 | | |
219 | 221 | | |
220 | 222 | | |
| |||
0 commit comments