Fix lint errors

This commit is contained in:
Alok Saboo 2024-09-15 11:36:16 -04:00
parent f57dc66444
commit afe43dc360

View file

@ -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", [])