From bbcd1db025d1163932bb22b31021c334d1175fa7 Mon Sep 17 00:00:00 2001 From: hartytp Date: Fri, 10 May 2019 12:48:12 +0100 Subject: [PATCH] sync_struct: replace ConnectionError subclasses with ConnectionError (#1318) --- artiq/protocols/sync_struct.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/artiq/protocols/sync_struct.py b/artiq/protocols/sync_struct.py index 4d8c84b69..35e75195a 100644 --- a/artiq/protocols/sync_struct.py +++ b/artiq/protocols/sync_struct.py @@ -312,8 +312,7 @@ class Publisher(AsyncioServer): await writer.drain() finally: self._recipients[notifier_name].remove(queue) - except (ConnectionResetError, ConnectionAbortedError, BrokenPipeError, - TimeoutError): + except (ConnectionError, TimeoutError): # subscribers disconnecting are a normal occurrence pass finally: