mirror of
https://github.com/beetbox/beets.git
synced 2026-01-08 17:08:12 +01:00
Updated error handling
This commit is contained in:
parent
079936c826
commit
7ffbd040a1
1 changed files with 1 additions and 4 deletions
|
|
@ -68,10 +68,7 @@ class DeezerPlugin(MetadataSourcePlugin, BeetsPlugin):
|
|||
response = requests.get(url, timeout=10)
|
||||
response.raise_for_status()
|
||||
data = response.json()
|
||||
except (
|
||||
requests.ConnectionError,
|
||||
requests.exceptions.RequestException,
|
||||
) as e:
|
||||
except requests.exceptions.RequestException as e:
|
||||
self._log.debug("Error fetching data from {}\n Error: {}", url, e)
|
||||
return None
|
||||
if "error" in data:
|
||||
|
|
|
|||
Loading…
Reference in a new issue