mirror of
https://github.com/Dvorinka/swingmusic-extended.git
synced 2026-10-28 14:31:15 +00:00
go back to bjoern
This commit is contained in:
1 parent
1d2e9bc2ab
commit
18f929d6f7
4 files changed
+5
-49
No files matched your search
@@ -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