Skip to content

Commit

Permalink
Fixes for logout command
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
kingosticks committed Oct 12, 2024
1 parent dd91e9b commit 394edc4
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/mopidy_spotify/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand All @@ -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")

0 comments on commit 394edc4

Please sign in to comment.