Do not try to use empty task_obj.args

This commit is contained in:
tcely authored and GitHub committed 2025-07-02 06:40:30 -04:00
1 parent 5ec14cad58
commit 2d377153e7
1 file changed
+1 -1
+1 -1
View File
@@ -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: