Skip to content

Commit 07445fd

Browse files
authored
Fix import --from-logfile (#6161)
Fixes "none of the paths are importable" error that was accidentally introduced in 4260162 4260162#diff-e324b20657a7d6b43b8b7aeb5754b96774f5062294b5ba7f1e3062845e9e7044R1382-R1390
2 parents e326aaf + 97bc0b3 commit 07445fd

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

beets/ui/commands/import_/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ def import_func(lib, opts, args: list[str]):
125125

126126
# If all paths were read from a logfile, and none of them exist, throw
127127
# an error
128-
if not paths:
128+
if not byte_paths:
129129
raise ui.UserError("none of the paths are importable")
130130

131131
import_files(lib, byte_paths, query)

docs/changelog.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@ Bug fixes:
4141
the default config path. :bug:`5652`
4242
- :doc:`plugins/lyrics`: Accepts strings for lyrics sources (previously only
4343
accepted a list of strings). :bug:`5962`
44+
- Fix a bug introduced in release 2.4.0 where import from any valid
45+
import-log-file always threw a "none of the paths are importable" error.
4446

4547
For plugin developers:
4648

0 commit comments

Comments
 (0)