mirror of
https://github.com/beetbox/beets.git
synced 2025-12-30 20:42:37 +01:00
This commit is contained in:
parent
0447df6510
commit
bdabafeefd
1 changed files with 1 additions and 4 deletions
|
|
@ -1341,10 +1341,7 @@ class ImportTaskFactory:
|
|||
# it is finished. This is usually just a SentinelImportTask, but
|
||||
# for archive imports, send the archive task instead (to remove
|
||||
# the extracted directory).
|
||||
if archive_task:
|
||||
yield archive_task
|
||||
else:
|
||||
yield self.sentinel()
|
||||
yield archive_task or self.sentinel()
|
||||
|
||||
def _create(self, task: ImportTask | None):
|
||||
"""Handle a new task to be emitted by the factory.
|
||||
|
|
|
|||
Loading…
Reference in a new issue