Use the 'resource_url' from discogs_client
@@ -208,7 +208,8 @@ class DiscogsPlugin(BeetsPlugin):
getattr(result, 'title')
except DiscogsAPIError as e:
if e.status_code != 404:
- self._log.debug(u'API Error: {0} (query: {1})', e, result._uri)
+ self._log.debug(u'API Error: {0} (query: {1})', e,
+ result.data['resource_url'])
if e.status_code == 401:
self.reset_auth()
return self.album_for_id(album_id)
@@ -260,7 +261,8 @@ class DiscogsPlugin(BeetsPlugin):
return year
except DiscogsAPIError as e:
if e.status_code != 404:
- self._log.debug(u'API Error: {0} (query: {1})', e, result._uri)
+ self._log.debug(u'API Error: {0} (query: {1})', e,
+ result.data['resource_url'])
if e.status_code == 401:
self.reset_auth()
return self.get_master_year(master_id)
