go back to bjoern

This commit is contained in:
cwilvx
2025-03-05 10:19:30 +03:00
parent 1d2e9bc2ab
commit 18f929d6f7
4 changed files with 5 additions and 49 deletions
+4 -1
View File
@@ -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))