Ticket #2617: msgq.diff

File msgq.diff, 588 bytes (added by jinmei, 7 years ago)
  • src/bin/msgq/msgq.py.in

    diff --git a/src/bin/msgq/msgq.py.in b/src/bin/msgq/msgq.py.in
    index 68c18dc..d43813c 100755
    a b class MsgQ: 
    344344        while len(received) < length:
    345345            try:
    346346                data = sock.recv(length - len(received))
    347             except socket.error:
    348                 raise MsgQReceiveError(socket.error)
     347            except socket.error as err:
     348                raise MsgQReceiveError(str(err))
    349349            if len(data) == 0:
    350350                raise MsgQReceiveError("EOF")
    351351            received += data