sync_struct: replace ConnectionError subclasses with ConnectionError (#1318)

pull/1319/head
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
1 changed files with 1 additions and 2 deletions

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: