Forgotten print
This commit is contained in:
parent
fc1f5ee436
commit
4a94cc3220
1 changed files with 0 additions and 1 deletions
|
@ -42,7 +42,6 @@ class Socket:
|
||||||
Receive a message from a socket"""
|
Receive a message from a socket"""
|
||||||
try: # Try to receive, else raise a custom error
|
try: # Try to receive, else raise a custom error
|
||||||
buffer_size = int(sock.recv(self.buffer_size, socket.MSG_WAITALL).decode("Utf8"))
|
buffer_size = int(sock.recv(self.buffer_size, socket.MSG_WAITALL).decode("Utf8"))
|
||||||
print(buffer_size)
|
|
||||||
response = sock.recv(buffer_size, socket.MSG_WAITALL)
|
response = sock.recv(buffer_size, socket.MSG_WAITALL)
|
||||||
except (socket.error, ValueError):
|
except (socket.error, ValueError):
|
||||||
raise ConnectionError("Fail to receive")
|
raise ConnectionError("Fail to receive")
|
||||||
|
|
Reference in a new issue