From 394edc48850428634a0329e3bed62501fde42c5b Mon Sep 17 00:00:00 2001 From: Nick Steel Date: Sat, 12 Oct 2024 23:23:49 +0100 Subject: [PATCH] Fixes for logout command Somehow, despite passing all tests, this didn't atually work with Mopidy 4.0 Also re-instating PR feedback that got lost with forced push. --- src/mopidy_spotify/commands.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/mopidy_spotify/commands.py b/src/mopidy_spotify/commands.py index 78ee2546..b21cb63e 100644 --- a/src/mopidy_spotify/commands.py +++ b/src/mopidy_spotify/commands.py @@ -18,7 +18,11 @@ def __init__(self): class LogoutCommand(commands.Command): help = "Logout from Spotify account." - def run(self, _args, config): + def run( + self, + args, # noqa: ARG002 + config, + ): credentials_dir = Extension().get_credentials_dir(config) try: for root, dirs, files in os.walk(credentials_dir, topdown=False): @@ -35,4 +39,4 @@ def run(self, _args, config): except Exception as error: logger.warning(f"Failed to logout from Spotify: {error}") else: - logger.info("Logout from Spotify complete") + logger.info("Logged out from Spotify")