Fix bug with `?plugin update`. by Jerrie-Aries · Pull Request #3295 · modmail-dev/Modmail

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