If the client is unexpectedly disconnected from the server, an unhandled exception occurs.
The stacktrace:
Unexpected disconnect. Attempting to reconnect.
Exception in callback 0(<coroutine ob...002D6C77ACE48>)
handle: <Handle 0(<coroutine ob...002D6C77ACE48>)>
Traceback (most recent call last):
File "I:\Program Files\python_3_7_1\Lib\asyncio\events.py", line 88, in _run
self._context.run(self._callback, *self._args)
TypeError: 'int' object is not callable
The setup
Small modifications to the basic echobot example in the readme,
If the client is unexpectedly disconnected from the server, an unhandled exception occurs.
The stacktrace:
The setup
Small modifications to the basic echobot example in the readme,
Basically, if the message contains
QQQ
Pydle's disconnect method is invoked, passingexpected=False
to simulate an unexpected disconnection from IRC.This invokes Pydle's reconnection logic, which appears to have a few bugs in it. Found while attempting to reproduce #77
I have a few ideas as to why this may be occurring, will investigate.