Skip to content

Commit

Permalink
Merge pull request #410 from kingosticks/command-logout-fix
Browse files Browse the repository at this point in the history
Fixes for logout command
  • Loading branch information
kingosticks authored Oct 12, 2024
2 parents dd91e9b + 394edc4 commit 72ff0f8
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 72ff0f8

Please sign in to comment.