fix(backup): awaited a coroutine

This commit is contained in:
Seaswimmer 2024-01-31 14:38:26 -05:00
parent 760059f8f0
commit 8327270e61
Signed by untrusted user: cswimr
GPG key ID: B8953EC01E5C4063

View file

@ -147,7 +147,7 @@ class Backup(commands.Cog):
cog_modules = [] cog_modules = []
for cog in cogs: for cog in cogs:
try: try:
cog_module = InstalledCog.convert(ctx, cog['name']) cog_module = await InstalledCog.convert(ctx, cog['name'])
except commands.BadArgument: except commands.BadArgument:
uninstall_e.append(f"Failed to uninstall {cog['name']}") uninstall_e.append(f"Failed to uninstall {cog['name']}")
continue continue