mirror of
https://github.com/beetbox/beets.git
synced 2025-12-07 17:16:07 +01:00
Fix lint errors
This commit is contained in:
parent
f57dc66444
commit
afe43dc360
1 changed files with 6 additions and 2 deletions
|
|
@ -288,12 +288,16 @@ class DeezerPlugin(MetadataSourcePlugin, BeetsPlugin):
|
|||
response.raise_for_status()
|
||||
except requests.exceptions.RequestException as e:
|
||||
self._log.error(
|
||||
"Error fetching data from {} API\n Error: {}", self.data_source, e
|
||||
"Error fetching data from {} API\n Error: {}",
|
||||
self.data_source,
|
||||
e,
|
||||
)
|
||||
return None
|
||||
except requests.exceptions.HTTPError as e:
|
||||
self._log.error(
|
||||
"HTTP error fetching data from {} API\n Error: {}", self.data_source, e
|
||||
"HTTP error fetching data from {} API\n Error: {}",
|
||||
self.data_source,
|
||||
e,
|
||||
)
|
||||
return None
|
||||
response_data = response.json().get("data", [])
|
||||
|
|
|
|||
Loading…
Reference in a new issue