From f4f174ce815c7ba1c8202f61e5512234c55637a5 Mon Sep 17 00:00:00 2001 From: SeaswimmerTheFsh Date: Wed, 31 Jan 2024 14:30:42 -0500 Subject: [PATCH] fix(backup): fixed a few errors --- backup/backup.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backup/backup.py b/backup/backup.py index d202f5c..a21f285 100644 --- a/backup/backup.py +++ b/backup/backup.py @@ -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']