def on_error(self, fd, callback):
        self.handlers[fd]['error'].append(callback)
        self._update_events(fd)
Add a callback for when an error has occurred on the given file descriptor.
dataset/ETHPy150Open Shizmob/pydle/pydle/async.py/EventLoop.on_error