1
0
Fork 0

Forgotten print

This commit is contained in:
Ethanell 2019-07-24 17:05:43 +02:00
parent fc1f5ee436
commit 4a94cc3220

View file

@ -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")