mirror of
https://github.com/Dvorinka/swingmusic-extended.git
synced 2026-06-04 12:33:03 +00:00
go back to bjoern
This commit is contained in:
@@ -101,7 +101,10 @@ class LastFmPlugin(Plugin):
|
||||
log.warn("scrobble response error" + str(e))
|
||||
return False
|
||||
|
||||
res_json: dict[str, Any] = res.json()
|
||||
try:
|
||||
res_json: dict[str, Any] = res.json()
|
||||
except requests.exceptions.JSONDecodeError:
|
||||
return False
|
||||
|
||||
if res_json.get("error"):
|
||||
log.error("LASTFM: scrobble error" + str(res_json))
|
||||
|
||||
Reference in New Issue
Block a user