We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9f01295 commit 1520fe2Copy full SHA for 1520fe2
django_routines/__init__.py
@@ -237,7 +237,7 @@ def command(
237
:return: The new command.
238
"""
239
settings = sys._getframe(1).f_globals # noqa: WPS437
240
- settings[ROUTINE_SETTING] = settings.get(ROUTINE_SETTING, {})
+ settings[ROUTINE_SETTING] = settings.get(ROUTINE_SETTING, {}) or {}
241
routine_dict = settings[ROUTINE_SETTING]
242
routine_obj = (
243
Routine.from_dict(routine_dict[routine])
0 commit comments