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

[cookies] list index out of range #79

Open
ltzmax opened this issue Nov 17, 2021 · 2 comments
Open

[cookies] list index out of range #79

ltzmax opened this issue Nov 17, 2021 · 2 comments
Labels
bug Something isn't working

Comments

@ltzmax
Copy link

ltzmax commented Nov 17, 2021

Heya ran command steal, and it errored, cookies is set to global.

Exception in command 'steal'
Traceback (most recent call last):
  File "/redenv/lib/python3.9/site-packages/discord/ext/commands/core.py", line 85, in wrapped
    ret = await coro(*args, **kwargs)
  File "/root/redbot/cogs/CogManager/cogs/cookies/cookies.py", line 137, in steal
    target_id = random.choice(ids)
  File "/usr/lib/python3.9/random.py", line 347, in choice
    return seq[self._randbelow(len(seq))]
IndexError: list index out of range

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/redenv/lib/python3.9/site-packages/discord/ext/commands/bot.py", line 939, in invoke
    await ctx.command.invoke(ctx)
  File "/redenv/lib/python3.9/site-packages/discord/ext/commands/core.py", line 863, in invoke
    await injected(*ctx.args, **ctx.kwargs)
  File "/redenv/lib/python3.9/site-packages/discord/ext/commands/core.py", line 94, in wrapped
    raise CommandInvokeError(exc) from exc
discord.ext.commands.errors.CommandInvokeError: Command raised an exception: IndexError: list index out of range
@elijabesu
Copy link
Owner

Hey, was it just a one time error, or does it happen over and over again?

@elijabesu elijabesu added the bug Something isn't working label Nov 18, 2021
@ltzmax
Copy link
Author

ltzmax commented Nov 18, 2021

It happens everytime someone run steal.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants