mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-21 18:27:59 -05:00
[Downloader] Catch and handle erorr in update_all when target repository/branch is missing (#3080)
* [Downloader] Catch and handle erorr in update_all when target repository/branch is removed from remote * Rewrite fix, remove ctx from repo_manager, edit docstring, add annotations * Text formatting * Group failed repo messages into padded table, catch single updated repo fails * Error catching v2; repo_manager design change * Docstrings, typos and changelog * Add Optional to update_repos annotatition * Wrong logic * Clear-er log message. * add format_failed_repos, change _repo_update for failed messages * Merge cog updating with fail repo logic; Filter out failed repos * Merge cog updating with fail repo logic; Cog updating logic shuffled to support sending fails at the end * Docstring typo * format_failed_repos - proper docstring * repo_manager.update_repos argument name fix * downloader._cog_checkforupdates added missed failed message * downloader._cog_update_logic place back return on some errors * Purge unused stuff from downloader._repo_update * downloader._cog_update_logic Change exception catching * _cog_update_logic purging obsolete * Remove obsolete 'message' from _cog_checkforupdates * Fix forgotten ctx.send * Wording * Removed obsolete 'message' * Fix wrong type hint in , update docstring * repo update logic fix * format_failed_repos type hint and docstring repair * Extend _get_cogs_to_check with 'update_repos' * Fix type mangling in _get_cogs_to_check * fix: typo Co-Authored-By: jack1142 <6032823+jack1142@users.noreply.github.com> * _repo_update; Added single repo up-to-date message
This commit is contained in:
1
changelog.d/downloader/3080.misc.2.rst
Normal file
1
changelog.d/downloader/3080.misc.2.rst
Normal file
@@ -0,0 +1 @@
|
||||
Added `Downloader.format_failed_repos` for formatting error message of repos failing to update.
|
||||
Reference in New Issue
Block a user