Skip to content

Watch channels tries to get task result without first ensuring the task has finished #1052

@MarkKoz

Description

@MarkKoz

Sentry Issue: BOT-70

InvalidStateError: Result is not set.
(1 additional frame(s) were not displayed)
...
  File "discord/ext/commands/bot.py", line 731, in reload_extension
    self._remove_module_references(lib.__name__)
  File "discord/ext/commands/bot.py", line 559, in _remove_module_references
    self.remove_cog(cogname)
  File "discord/ext/commands/bot.py", line 545, in remove_cog
    cog._eject(self)
  File "discord/ext/commands/cog.py", line 424, in _eject
    self.cog_unload()
  File "bot/cogs/watchchannels/watchchannel.py", line 335, in cog_unload
    self._consume_task.result()

Extension 'bot.cogs.watchchannels' failed to reload.

Metadata

Metadata

Assignees

No one assigned

    Labels

    a: moderationRelated to community moderation functionality: (moderation, defcon, verification)m: duplicateIssue or pull request already existsp: 3 - lowLow Priorityt: bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions