Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix bug with ?plugin update. #3295

Merged
merged 1 commit into from
Nov 19, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions cogs/plugins.py
Original file line number Diff line number Diff line change
Expand Up @@ -502,12 +502,12 @@ async def update_plugin(self, ctx, plugin_name):
description=f"Failed to update {plugin.name}. This plugin will now be removed from your bot.",
color=self.bot.error_color,
)
self.bot.config["plugins"].remove(plugin_name)
logger.debug("Failed to update %s. Removed plugin from config.", plugin_name)
self.bot.config["plugins"].remove(str(plugin))
logger.debug("Failed to update %s. Removed plugin from config.", plugin)
else:
logger.debug("Updated %s.", plugin_name)
logger.debug("Updated %s.", plugin)
else:
logger.debug("Updated %s.", plugin_name)
logger.debug("Updated %s.", plugin)
return await ctx.send(embed=embed)

@plugins.command(name="update")
Expand Down