Fix import --from-logfile (#6161)

Fixes "none of the paths are importable" error that was accidentally
introduced in 4260162d4

4260162d44 (diff-e324b20657a7d6b43b8b7aeb5754b96774f5062294b5ba7f1e3062845e9e7044R1382-R1390)
This commit is contained in:
Sebastian Mohr 2025-11-13 19:32:19 +01:00 committed by GitHub
commit 07445fdd07
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 3 additions and 1 deletions

View file

@ -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)

View file

@ -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: