forked from cswimr/SeaCogs
fix(backup): fixed the final logging step
This commit is contained in:
parent
f33ebd29e9
commit
9b930fc05b
1 changed files with 3 additions and 3 deletions
|
@ -187,14 +187,14 @@ class Backup(commands.Cog):
|
|||
if repository.available_libraries:
|
||||
installed_libs, failed_libs = await repository.install_libraries(target_dir=downloader.SHAREDLIB_PATH, req_target_dir=downloader.LIB_PATH)
|
||||
else:
|
||||
installed_libs = ((),)
|
||||
failed_libs = ()
|
||||
installed_libs = None
|
||||
failed_libs = None
|
||||
|
||||
if cog_pinned:
|
||||
for cog in installed_cogs:
|
||||
cog.pinned = True
|
||||
|
||||
await downloader._save_to_installed(installed_cogs + installed_libs)
|
||||
await downloader._save_to_installed(installed_cogs + installed_libs if installed_libs else installed_cogs)
|
||||
if failed_cogs:
|
||||
install_e.append(f"Failed to install {failed_cogs}")
|
||||
if failed_libs:
|
||||
|
|
Loading…
Reference in a new issue