Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Downloader] Cog update fails if cogs are already up-to-date #3229

Closed
jack1142 opened this issue Dec 27, 2019 · 0 comments · Fixed by #3230
Closed

[Downloader] Cog update fails if cogs are already up-to-date #3229

jack1142 opened this issue Dec 27, 2019 · 0 comments · Fixed by #3230
Labels
Type: Bug

Comments

@jack1142
Copy link
Member

@jack1142 jack1142 commented Dec 27, 2019

Command bugs

Command name

[p]cog update* commands

What cog is this command from?

Downloader

What is the issue?

If cogs are already up-to-date, Downloader errors:

Exception in command 'cog updatetoversion'
Traceback (most recent call last):
  File "venv\lib\site-packages\discord\ext\commands\core.py", line 79, in wrapped
    ret = await coro(*args, **kwargs)
  File "venv\lib\site-packages\redbot\cogs\downloader\downloader.py", line 802, in _cog_updatetoversion
    await self._cog_update_logic(ctx, repo=repo, rev=rev, cogs=cogs)
  File "venv\lib\site-packages\redbot\cogs\downloader\downloader.py", line 909, in _cog_update_logic
    for module in cogs_to_update + libs_to_update
UnboundLocalError: local variable 'cogs_to_update' referenced before assignment

Regression introduced by #3106

@jack1142 jack1142 added the Type: Bug label Dec 27, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug
Projects
None yet
1 participant