fix(backup): fixed the final logging step
Some checks failed
Actions / Lint Code (Pylint) (pull_request) Failing after 17s
Actions / Build Documentation (MkDocs) (pull_request) Successful in 18s

This commit is contained in:
Seaswimmer 2024-01-31 14:48:07 -05:00
parent f33ebd29e9
commit 9b930fc05b
Signed by: cswimr
GPG key ID: B8953EC01E5C4063

View file

@ -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: