return empty lists instead of None

This commit is contained in:
fhchl 2023-10-22 20:46:36 +02:00 committed by GitHub
parent 9055abdba2
commit 3e1d496ba1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -246,13 +246,13 @@ class DiscogsPlugin(BeetsPlugin):
:rtype: list[beets.autotag.hooks.TrackInfo]
"""
if not self.discogs_client:
return
return []
if not artist and not title:
self._log.debug(
"Skipping Discogs query. File missing artist and " "title tags."
)
return
return []
query = f"{artist} {title}"
try: