Fix crash in task.imported_items (#6326)

Fixes #6291

I think it does not hurt if the imported_items() method returned an
empty list instead of an throwing an exception if there is nothing in
it!
This commit is contained in:
Šarūnas Nejus 2026-01-31 23:54:07 +00:00 committed by GitHub
commit b2335b984d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -253,7 +253,7 @@ class ImportTask(BaseImportTask):
):
return self.match.items
else:
assert False
return []
def apply_metadata(self):
"""Copy metadata from match info to the items."""