diff --git a/beets/ui/commands/import_/__init__.py b/beets/ui/commands/import_/__init__.py index 5dba71fa8..b2991f183 100644 --- a/beets/ui/commands/import_/__init__.py +++ b/beets/ui/commands/import_/__init__.py @@ -125,7 +125,7 @@ def import_func(lib, opts, args: list[str]): # If all paths were read from a logfile, and none of them exist, throw # an error - if not paths: + if not byte_paths: raise ui.UserError("none of the paths are importable") import_files(lib, byte_paths, query) diff --git a/docs/changelog.rst b/docs/changelog.rst index 1225f4f9f..366af9ff0 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -41,6 +41,8 @@ Bug fixes: the default config path. :bug:`5652` - :doc:`plugins/lyrics`: Accepts strings for lyrics sources (previously only accepted a list of strings). :bug:`5962` +- Fix a bug introduced in release 2.4.0 where import from any valid + import-log-file always threw a "none of the paths are importable" error. For plugin developers: