We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 87442eb commit 76f6425Copy full SHA for 76f6425
1 file changed
examples/trio-server.py
@@ -149,7 +149,7 @@ async def shutdown_and_clean_up(self):
149
#
150
try:
151
await self.stream.send_eof()
152
- except trio.BrokenStreamError:
+ except trio.BrokenResourceError:
153
# They're already gone, nothing to do
154
return
155
# Wait and read for a bit to give them a chance to see that we closed
@@ -168,7 +168,7 @@ async def shutdown_and_clean_up(self):
168
got = await self.stream.receive_some(MAX_RECV)
169
if not got:
170
break
171
172
pass
173
finally:
174
await self.stream.aclose()
0 commit comments