[V3 Downloader] Always remove cog from installed when using cog uninstall (#2595)

This commit is contained in:
jack1142 2019-04-23 20:26:16 +02:00 committed by Will
parent 3d498a74ba
commit da5fd7699e

View File

@ -346,10 +346,10 @@ class Downloader(commands.Cog):
if poss_installed_path.exists():
ctx.bot.unload_extension(real_name)
await self._delete_cog(poss_installed_path)
await self._remove_from_installed(cog)
uninstalled_cogs.append(inline(real_name))
else:
failed_cogs.append(real_name)
await self._remove_from_installed(cog)
message = ""
if uninstalled_cogs: