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

[V3 General] urban command throws an error if the message is deleted before menu timeout #2259

Closed
MeatyChunks opened this issue Oct 18, 2018 · 1 comment
Labels
Type: Bug Unexpected behavior, result, or exception. In case of PRs, it is a fix for the foregoing.
Milestone

Comments

@MeatyChunks
Copy link
Contributor

Command bugs

Command name

urban

What cog is this command from?

general

What were you expecting to happen?

The bot should silently pass over the error I think.

What actually happened?

The bot finds the dictionary result, if the reply is deleted, an error is thrown when the menu timer expires after 30 seconds.

How can we reproduce this issue?

!urban test
!cleanup self 2
wait the 30 seconds and an error is seen in chat with the following traceback:

ERROR events on_command_error 208: Exception in command 'urban'
Traceback (most recent call last):
  File "c:\users\Ferret\appdata\local\programs\python\python36\lib\site-packages\redbot\core\utils\menus.py", line 85, in menu
    timeout=timeout,
  File "c:\users\Ferret\appdata\local\programs\python\python36\lib\asyncio\tasks.py", line 362, in wait_for
    raise futures.TimeoutError()
concurrent.futures._base.TimeoutError

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "c:\users\Ferret\appdata\local\programs\python\python36\lib\site-packages\discord\ext\commands\core.py", line 61, in wrapped
    ret = await coro(*args, **kwargs)
  File "c:\users\Ferret\appdata\local\programs\python\python36\lib\site-packages\redbot\cogs\general\general.py", line 301, in urban
    timeout=30,
  File "c:\users\Ferret\appdata\local\programs\python\python36\lib\site-packages\redbot\core\utils\menus.py", line 89, in menu
    await message.clear_reactions()
  File "c:\users\Ferret\appdata\local\programs\python\python36\lib\site-packages\discord\message.py", line 748, in clear_reactions
    await self._state.http.clear_reactions(self.id, self.channel.id)
  File "c:\users\Ferret\appdata\local\programs\python\python36\lib\site-packages\discord\http.py", line 211, in request
    raise NotFound(r, data)
discord.errors.NotFound: NOT FOUND (status code: 404): Unknown Message
@Kowlin Kowlin added the V3 label Oct 22, 2018
@Tobotimus Tobotimus added Type: Bug Unexpected behavior, result, or exception. In case of PRs, it is a fix for the foregoing. Status: Accepted We want this labels Dec 20, 2018
@Tobotimus Tobotimus added this to the RC3 milestone Dec 20, 2018
@Tobotimus Tobotimus added Status: In Progress There's a PR open to deal with this, or an org member is working on this internally and removed Status: Accepted We want this labels Dec 21, 2018
@Tobotimus
Copy link
Member

Resolved by #2344.

@Tobotimus Tobotimus removed the Status: In Progress There's a PR open to deal with this, or an org member is working on this internally label Jan 10, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Unexpected behavior, result, or exception. In case of PRs, it is a fix for the foregoing.
Projects
None yet
Development

No branches or pull requests

3 participants