#Bot Crashing

1 messages · Page 1 of 1 (latest)

rose breach
#
INFO:discord.client:Cleaning up tasks.
INFO:discord.client:Cleaning up after 15 tasks.
Level 35:discord:Now logging in as Daily Quotes!
INFO:discord.client:All tasks finished cancelling.
INFO:discord.client:Closing the event loop.
Traceback (most recent call last):
  File "/home/container/bot.py", line 707, in <module>

  File "/home/container/.local/lib/python3.10/site-packages/discord/client.py", line 715, in run
    return future.result()
  File "/home/container/.local/lib/python3.10/site-packages/discord/client.py", line 694, in runner
    await self.start(*args, **kwargs)
  File "/home/container/.local/lib/python3.10/site-packages/discord/client.py", line 658, in start
    await self.connect(reconnect=reconnect)
  File "/home/container/.local/lib/python3.10/site-packages/discord/shard.py", line 462, in connect
    raise item.error
  File "/home/container/.local/lib/python3.10/site-packages/discord/shard.py", line 185, in worker
    await self.ws.poll_event()
  File "/home/container/.local/lib/python3.10/site-packages/discord/gateway.py", line 589, in poll_event
    await self.received_message(msg.data)
  File "/home/container/.local/lib/python3.10/site-packages/discord/gateway.py", line 539, in received_message
    func(data)
  File "/home/container/.local/lib/python3.10/site-packages/discord/state.py", line 635, in parse_auto_moderation_action_execution
    event = AutoModActionExecutionEvent(self, data)
  File "/home/container/.local/lib/python3.10/site-packages/discord/raw_models.py", line 462, in __init__
    self.content: str = data["content"]
KeyError: 'content'
ERROR:asyncio:Unclosed client session
#

Bot is randomly crashing, 3.1k servers.

#

And latest version of pycord

woven raven
dire impBOT
rose breach
light lily
rose breach
#

Thanks 🙂

light lily
#

You're welcome

rose breach
#

That seemed to have fixed it

light lily
rose breach
#

Kk