mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-12-06 09:22:31 -05:00
[Downloader] Fix UnboundLocalError in cog update that happened when cogs were already up-to-date. (#3230)
* Update downloader.py * Create 3229.misc.rst
This commit is contained in:
1
changelog.d/downloader/3229.misc.rst
Normal file
1
changelog.d/downloader/3229.misc.rst
Normal file
@@ -0,0 +1 @@
|
|||||||
|
Fix `UnboundLocalError` in cog update that happened when cogs were already up-to-date.
|
||||||
@@ -859,6 +859,7 @@ class Downloader(commands.Cog):
|
|||||||
pinned_cogs = {cog for cog in cogs_to_check if cog.pinned}
|
pinned_cogs = {cog for cog in cogs_to_check if cog.pinned}
|
||||||
cogs_to_check -= pinned_cogs
|
cogs_to_check -= pinned_cogs
|
||||||
if not cogs_to_check:
|
if not cogs_to_check:
|
||||||
|
cogs_to_update = libs_to_update = ()
|
||||||
message += _("There were no cogs to check.")
|
message += _("There were no cogs to check.")
|
||||||
if pinned_cogs:
|
if pinned_cogs:
|
||||||
cognames = [cog.name for cog in pinned_cogs]
|
cognames = [cog.name for cog in pinned_cogs]
|
||||||
|
|||||||
Reference in New Issue
Block a user