2
0
mirror of https://github.com/m-labs/artiq.git synced 2024-12-25 11:18:27 +08:00

sync_struct: replace ConnectionError subclasses with ConnectionError (#1318)

This commit is contained in:
hartytp 2019-05-10 12:48:12 +01:00 committed by GitHub
parent 30fe624fe5
commit bbcd1db025
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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: