Skip to content

Commit

Permalink
bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
Nurdok committed Oct 17, 2024
1 parent 4fe01d2 commit dfd9bd7
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/spanreed/plugins/plugin_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,13 +118,12 @@ async def _reconfigure_existing_plugin(
await bot.send_message("There are no plugins to reconfigure.")
return

if choice := await bot.request_user_choice(
if (choice := await bot.request_user_choice(
"Which plugin do you want to reconfigure?",
[p.name() for p in plugins] + ["Cancel"],
) == len(plugins):
)) == len(plugins):
return

self._logger.info(f"Available plugins: {plugins}")
plugin = plugins[choice]
self._logger.info(f"Reconfiguring user {user} for plugin #{choice} {plugin}")
self._logger.info(f"Reconfiguring user {user} for plugin {plugin}")
await plugin.ask_for_user_config(user)

0 comments on commit dfd9bd7

Please sign in to comment.