Fix deprecated call log.warn -> log.warning

https://bugs.python.org/issue13235
This commit is contained in:
Carl Suster 2019-03-31 19:24:21 +11:00
parent 728267d06c
commit ca60555ffa

View file

@ -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])