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

View File

@ -312,8 +312,7 @@ class Publisher(AsyncioServer):
await writer.drain() await writer.drain()
finally: finally:
self._recipients[notifier_name].remove(queue) self._recipients[notifier_name].remove(queue)
except (ConnectionResetError, ConnectionAbortedError, BrokenPipeError, except (ConnectionError, TimeoutError):
TimeoutError):
# subscribers disconnecting are a normal occurrence # subscribers disconnecting are a normal occurrence
pass pass
finally: finally: