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

[BUG] RuntimeError from phishingdetection cog when unloading #271

Open
tigattack opened this issue Jul 30, 2024 · 0 comments
Open

[BUG] RuntimeError from phishingdetection cog when unloading #271

tigattack opened this issue Jul 30, 2024 · 0 comments
Labels
bug Something isn't working cog-phishdetect Issues related to the phishingdetection cog.

Comments

@tigattack
Copy link
Member

Describe the bug

I noticed this when restarting the bot and haven't looked into it. Could be transient, could be a simple fix, idk, just logging so it's logged and I don't forget forever.

To Reproduce
Steps to reproduce the behavior:

  1. Load cog
  2. Unload cog

Expected behavior

Not this I guess.

Screenshots

Additional context

Logs:

[2024-07-30 21:43:13] [ERROR] discord.ext.commands.cog: Ignoring exception in cog unload for Cog <class 'phishingdetection.phishingdetection.PhishingDetectionCog'> ('PhishingDetectionCog')
Traceback (most recent call last):
  File "/redbot/.local/lib/python3.11/site-packages/discord/ext/commands/cog.py", line 776, in _eject
    await maybe_coroutine(self.cog_unload)
  File "/redbot/.local/lib/python3.11/site-packages/discord/utils.py", line 692, in maybe_coroutine
    value = f(*args, **kwargs)
            ^^^^^^^^^^^^^^^^^^
  File "/redbot/data/cogs/CogManager/cogs/phishingdetection/phishingdetection.py", line 68, in cog_unload
    self.bot.loop.run_until_complete(self.session.close())
  File "uvloop/loop.pyx", line 1511, in uvloop.loop.Loop.run_until_complete
  File "uvloop/loop.pyx", line 1504, in uvloop.loop.Loop.run_until_complete
  File "uvloop/loop.pyx", line 1377, in uvloop.loop.Loop.run_forever
  File "uvloop/loop.pyx", line 518, in uvloop.loop.Loop._run
RuntimeError: this event loop is already running.
@tigattack tigattack added bug Something isn't working cog-phishdetect Issues related to the phishingdetection cog. labels Jul 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working cog-phishdetect Issues related to the phishingdetection cog.
Projects
None yet
Development

No branches or pull requests

1 participant