mirror of
https://github.com/beetbox/beets.git
synced 2025-12-29 03:52:51 +01:00
duplicates: fix crash when query return empty results
This commit is contained in:
parent
027474b86a
commit
d6ca1cc242
1 changed files with 5 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'
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue