From 3e1d496ba11b199321b7f5af9c484fd7bd394abc Mon Sep 17 00:00:00 2001 From: fhchl Date: Sun, 22 Oct 2023 20:46:36 +0200 Subject: [PATCH] return empty lists instead of None --- beetsplug/discogs.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/beetsplug/discogs.py b/beetsplug/discogs.py index 5bdd27705..5085214f5 100644 --- a/beetsplug/discogs.py +++ b/beetsplug/discogs.py @@ -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: