mirror of
https://github.com/Dvorinka/swingmusic-extended.git
synced 2026-06-03 20:13:02 +00:00
handle keyerror on last.fm plugin
+ remove docs sections on pyproject.toml
This commit is contained in:
@@ -112,7 +112,11 @@ class LastFmPlugin(Plugin):
|
||||
if res_json["error"] == 9:
|
||||
log.error("LAST.FM: Invalid session key")
|
||||
# Invalid session key
|
||||
self.config.lastfmSessionKeys.pop(str(get_current_userid()))
|
||||
try:
|
||||
self.config.lastfmSessionKeys.pop(str(get_current_userid()))
|
||||
except KeyError:
|
||||
pass
|
||||
|
||||
self.config.lastfmSessionKeys = self.config.lastfmSessionKeys
|
||||
return False
|
||||
|
||||
|
||||
Reference in New Issue
Block a user