mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-06 03:08:55 -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:
parent
aabdabf3bc
commit
f9211ff50f
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}
|
||||
cogs_to_check -= pinned_cogs
|
||||
if not cogs_to_check:
|
||||
cogs_to_update = libs_to_update = ()
|
||||
message += _("There were no cogs to check.")
|
||||
if pinned_cogs:
|
||||
cognames = [cog.name for cog in pinned_cogs]
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user