Пример #1
0
 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')
Пример #2
0
 def handle_error(self, payload):
     if payload['type'] == 'auth':
         raise QdbAuthenticationError(payload['data'])
     else:
         raise QdbCommunicationError(payload)