2
0
mirror of https://github.com/openkmip/pykmip synced 2026-01-07 19:13:19 +00:00

Merge pull request #458 from tipabu/eoferror-text

Change EOFError text
This commit is contained in:
Peter Hamilton
2018-10-10 08:51:40 -04:00
committed by GitHub

View File

@@ -44,7 +44,7 @@ class KMIPProtocol(object):
header = self._recv_all(self.HEADER_SIZE)
except RequestLengthMismatch as e:
if e.received == 0:
raise EOFError("No request to process")
raise EOFError("No data read from socket")
else:
raise
msg_size = unpack('!I', header[4:])[0]