Drop deprecated trio error

loglevel_to_tractor_tests
Tyler Goodlet 2018-11-09 01:53:15 -05:00
parent 12fa5542b1
commit 71bb87aa3a
1 changed files with 3 additions and 3 deletions

View File

@ -30,7 +30,7 @@ class StreamQueue:
try:
data = await self.stream.receive_some(2**10)
log.trace(f"received {data}") # type: ignore
except trio.BrokenStreamError:
except trio.BrokenResourceError:
log.error(f"Stream connection {self.raddr} broke")
return
@ -127,7 +127,7 @@ class Channel:
assert self.squeue
try:
return await self.squeue.get()
except trio.BrokenStreamError:
except trio.BrokenResourceError:
if self._autorecon:
await self._reconnect()
return await self.recv()
@ -191,7 +191,7 @@ class Channel:
# # optimization, passing None through all the
# # time is pointless
# await self.squeue.put(sent)
except trio.BrokenStreamError:
except trio.BrokenResourceError:
if not self._autorecon:
raise
await self.aclose()