diff --git a/artiq/coredevice/comm_tcp.py b/artiq/coredevice/comm_tcp.py index 1ad7d3e8b..7c9395609 100644 --- a/artiq/coredevice/comm_tcp.py +++ b/artiq/coredevice/comm_tcp.py @@ -57,7 +57,7 @@ class Comm(CommGeneric): while len(r) < length: rn = self.socket.recv(min(8192, length - len(r))) if not rn: - raise IOError("Connection closed") + raise ConnectionResetError("Connection closed") r += rn return r