fix(backup): fixed a few errors

This commit is contained in:
Seaswimmer 2024-01-31 14:30:42 -05:00
parent 417ee9bde4
commit f4f174ce81
Signed by untrusted user: cswimr
GPG key ID: B8953EC01E5C4063

View file

@ -110,7 +110,7 @@ class Backup(commands.Cog):
except errors.ExistingGitRepo:
repo_e.append(f"Repository {name} already exists.")
continue
repository = downloader._repo_manager.get_repo(name) # pylint: disable=protected-access
# This is commented out because errors.AuthenticationError is not yet implemented in Red 3.5.5's Downloader cog.
# Rather, it is only in the development version and will be added in version 3.5.6 (or whatever the next version is).
@ -157,7 +157,7 @@ class Backup(commands.Cog):
await downloader._delete_cog(poss_installed_path)
else:
uninstall_e.append(f"Failed to uninstall {cog}")
await downloader._remove_from_installed(cogs)
await downloader._remove_from_installed(cog)
for cog in cogs:
cog_name = cog['name']