def user_next_command(self, tracer, msg=None): """ Processes the next message from the reader. """ try: return next(self.get_commands(tracer))() except StopIteration: raise QdbCommunicationError('No more commands from server')
def handle_error(self, payload): if payload['type'] == 'auth': raise QdbAuthenticationError(payload['data']) else: raise QdbCommunicationError(payload)