fix(backup): fixed a few errors
This commit is contained in:
parent
417ee9bde4
commit
f4f174ce81
1 changed files with 2 additions and 2 deletions
|
@ -110,7 +110,7 @@ class Backup(commands.Cog):
|
||||||
|
|
||||||
except errors.ExistingGitRepo:
|
except errors.ExistingGitRepo:
|
||||||
repo_e.append(f"Repository {name} already exists.")
|
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.
|
# 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).
|
# 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)
|
await downloader._delete_cog(poss_installed_path)
|
||||||
else:
|
else:
|
||||||
uninstall_e.append(f"Failed to uninstall {cog}")
|
uninstall_e.append(f"Failed to uninstall {cog}")
|
||||||
await downloader._remove_from_installed(cogs)
|
await downloader._remove_from_installed(cog)
|
||||||
|
|
||||||
for cog in cogs:
|
for cog in cogs:
|
||||||
cog_name = cog['name']
|
cog_name = cog['name']
|
||||||
|
|
Loading…
Reference in a new issue