Skip to content

bug: crash when disconnected #32

Description

@d0p1s4m4

we need to implement a queu

Jan 03 16:52:22 localhost python[105099]: RuntimeError: Not connected
Jan 03 16:52:22 localhost python[105099]: Ignoring exception in on_message
Jan 03 16:52:22 localhost python[105099]: Traceback (most recent call last):
Jan 03 16:52:22 localhost python[105099]:   File "/home/hades/devse-chan/.env/lib/python3.8/site-packages/nextcord/client.py", line 351, in _run_event
Jan 03 16:52:22 localhost python[105099]:     await coro(*args, **kwargs)
Jan 03 16:52:22 localhost python[105099]:   File "/home/hades/devse-chan/devsechan/discord.py", line 30, in on_message
Jan 03 16:52:22 localhost python[105099]:     parent.to_irc(message.author,
Jan 03 16:52:22 localhost python[105099]:   File "/home/hades/devse-chan/devsechan/__init__.py", line 24, in to_irc
Jan 03 16:52:22 localhost python[105099]:     self.irc.send(author, msg)
Jan 03 16:52:22 localhost python[105099]:   File "/home/hades/devse-chan/devsechan/irc/__init__.py", line 65, in send
Jan 03 16:52:22 localhost python[105099]:     self.irc.send('PRIVMSG', target=self.config['channel'].get(), message=f"<{colored_nick}> {message}")
Jan 03 16:52:22 localhost python[105099]:   File "/home/hades/devse-chan/.env/lib/python3.8/site-packages/bottom/client.py", line 181, in send
Jan 03 16:52:22 localhost python[105099]:     self.send_raw(packed_command)
Jan 03 16:52:22 localhost python[105099]:   File "/home/hades/devse-chan/.env/lib/python3.8/site-packages/bottom/client.py", line 66, in send_raw
Jan 03 16:52:22 localhost python[105099]:     raise RuntimeError("Not connected")

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinggood first issueGood for newcomers

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions