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:
@@ -63,14 +63,6 @@ dev = [
|
|||||||
"pyinstaller==6.12.0",
|
"pyinstaller==6.12.0",
|
||||||
]
|
]
|
||||||
|
|
||||||
docs = [
|
|
||||||
"sphinx",
|
|
||||||
"furo",
|
|
||||||
"sphinx_design",
|
|
||||||
"myst_parser",
|
|
||||||
"sphinx",
|
|
||||||
"sphinx-autodoc2",
|
|
||||||
]
|
|
||||||
|
|
||||||
[tool.setuptools]
|
[tool.setuptools]
|
||||||
package-dir = {"swingmusic" = "swingmusic"}
|
package-dir = {"swingmusic" = "swingmusic"}
|
||||||
|
|||||||
@@ -112,7 +112,11 @@ class LastFmPlugin(Plugin):
|
|||||||
if res_json["error"] == 9:
|
if res_json["error"] == 9:
|
||||||
log.error("LAST.FM: Invalid session key")
|
log.error("LAST.FM: Invalid session key")
|
||||||
# Invalid session key
|
# Invalid session key
|
||||||
|
try:
|
||||||
self.config.lastfmSessionKeys.pop(str(get_current_userid()))
|
self.config.lastfmSessionKeys.pop(str(get_current_userid()))
|
||||||
|
except KeyError:
|
||||||
|
pass
|
||||||
|
|
||||||
self.config.lastfmSessionKeys = self.config.lastfmSessionKeys
|
self.config.lastfmSessionKeys = self.config.lastfmSessionKeys
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user