Skip to content
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