Do not try to use empty task_obj.args
This commit is contained in:
1 parent
5ec14cad58
commit
2d377153e7
1 file changed
+1
-1
@@ -266,7 +266,7 @@ def historical_task(signal_name, task_obj, exception_obj=None, /, *, huey=None):
|
||||
th.last_error = str(exception_obj)
|
||||
elif signal_name == signals.SIGNAL_ENQUEUED:
|
||||
from sync.models import Media, Source
|
||||
if not th.verbose_name:
|
||||
if not th.verbose_name and task_obj.args:
|
||||
key = task_obj.args[0]
|
||||
for model in (Media, Source,):
|
||||
try:
|
||||
|
||||
Reference in new issue
Block a user