feat(backup): updated to Red 3.5.6+

This commit is contained in:
Seaswimmer 2024-03-29 03:29:35 -04:00
parent 43464db6a7
commit 1edb08a127
Signed by untrusted user: cswimr
GPG key ID: B8953EC01E5C4063
2 changed files with 851 additions and 972 deletions

View file

@ -14,8 +14,7 @@ from redbot.cogs.downloader import errors
from redbot.cogs.downloader.converters import InstalledCog
from redbot.core import commands
from redbot.core.bot import Red
from redbot.core.utils.chat_formatting import (error, humanize_list,
text_to_file)
from redbot.core.utils.chat_formatting import error, humanize_list, text_to_file
# pylint: disable=protected-access
@ -159,17 +158,15 @@ class Backup(commands.Cog):
)
self.logger.debug("Repository %s already exists", name)
# 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).
# except errors.AuthenticationError as err:
# repo_e.append(f"Authentication error while adding repository {name}. See logs for more information.")
# self.logger.exception(
# "Something went wrong whilst cloning %s (to revision %s)",
# url,
# branch,
# exc_info=err,
# )
# continue
except errors.AuthenticationError as err:
repo_e.append(f"Authentication error while adding repository {name}. See logs for more information.")
self.logger.exception(
"Something went wrong whilst cloning %s (to revision %s)",
url,
branch,
exc_info=err,
)
continue
except errors.CloningError as err:
repo_e.append(

1800
poetry.lock generated

File diff suppressed because it is too large Load diff