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']