From ca60555ffa4af0382269ed2c3fb0c68a8e519b19 Mon Sep 17 00:00:00 2001 From: Carl Suster Date: Sun, 31 Mar 2019 19:24:21 +1100 Subject: [PATCH] Fix deprecated call log.warn -> log.warning https://bugs.python.org/issue13235 --- beetsplug/discogs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/beetsplug/discogs.py b/beetsplug/discogs.py index d7797e409..5a2bf57e0 100644 --- a/beetsplug/discogs.py +++ b/beetsplug/discogs.py @@ -284,7 +284,7 @@ class DiscogsPlugin(BeetsPlugin): # https://www.discogs.com/help/doc/submission-guidelines-general-rules if not all([result.data.get(k) for k in ['artists', 'title', 'id', 'tracklist']]): - self._log.warn(u"Release does not contain the required fields") + self._log.warning(u"Release does not contain the required fields") return None artist, artist_id = self.get_artist([a.data for a in result.artists])