feat(backup): updated to Red 3.5.6+
This commit is contained in:
parent
43464db6a7
commit
1edb08a127
2 changed files with 851 additions and 972 deletions
|
@ -14,8 +14,7 @@ from redbot.cogs.downloader import errors
|
||||||
from redbot.cogs.downloader.converters import InstalledCog
|
from redbot.cogs.downloader.converters import InstalledCog
|
||||||
from redbot.core import commands
|
from redbot.core import commands
|
||||||
from redbot.core.bot import Red
|
from redbot.core.bot import Red
|
||||||
from redbot.core.utils.chat_formatting import (error, humanize_list,
|
from redbot.core.utils.chat_formatting import error, humanize_list, text_to_file
|
||||||
text_to_file)
|
|
||||||
|
|
||||||
|
|
||||||
# pylint: disable=protected-access
|
# pylint: disable=protected-access
|
||||||
|
@ -159,17 +158,15 @@ class Backup(commands.Cog):
|
||||||
)
|
)
|
||||||
self.logger.debug("Repository %s already exists", name)
|
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.
|
except errors.AuthenticationError as err:
|
||||||
# Rather, it is only in the development version and will be added in version 3.5.6 (or whatever the next version is).
|
repo_e.append(f"Authentication error while adding repository {name}. See logs for more information.")
|
||||||
# except errors.AuthenticationError as err:
|
self.logger.exception(
|
||||||
# repo_e.append(f"Authentication error while adding repository {name}. See logs for more information.")
|
"Something went wrong whilst cloning %s (to revision %s)",
|
||||||
# self.logger.exception(
|
url,
|
||||||
# "Something went wrong whilst cloning %s (to revision %s)",
|
branch,
|
||||||
# url,
|
exc_info=err,
|
||||||
# branch,
|
)
|
||||||
# exc_info=err,
|
continue
|
||||||
# )
|
|
||||||
# continue
|
|
||||||
|
|
||||||
except errors.CloningError as err:
|
except errors.CloningError as err:
|
||||||
repo_e.append(
|
repo_e.append(
|
||||||
|
|
1800
poetry.lock
generated
1800
poetry.lock
generated
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue