mirror of
https://github.com/beetbox/beets.git
synced 2026-02-01 04:55:38 +01:00
Merge pull request #3980 from wisp3rwind/pr_fix_duplicate_empty_query
duplicates: fix crash on empty query
This commit is contained in:
commit
7e702a0318
2 changed files with 8 additions and 0 deletions
|
|
@ -136,6 +136,11 @@ class DuplicatesPlugin(BeetsPlugin):
|
|||
keys = ['mb_trackid', 'mb_albumid']
|
||||
items = lib.items(decargs(args))
|
||||
|
||||
# If there's nothing to do, return early. The code below assumes
|
||||
# `items` to be non-empty.
|
||||
if not items:
|
||||
return
|
||||
|
||||
if path:
|
||||
fmt = u'$path'
|
||||
|
||||
|
|
|
|||
|
|
@ -383,6 +383,9 @@ Fixes:
|
|||
* :doc:`/plugins/lyrics`: Fix crashes when a website could not be retrieved,
|
||||
affecting at least the Genius source
|
||||
:bug:`3970`
|
||||
* :doc:`/plugins/duplicates`: Fix a crash when running the ``dup`` command with
|
||||
a query that returns no results.
|
||||
:bug:`3943`
|
||||
|
||||
For plugin developers:
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue