Skip to content

Commit d8f1727

Browse files
committed
applet.video.ws2812_output: Remove deprecated_cancel_on_eof
1 parent b45588d commit d8f1727

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

software/glasgow/applet/video/ws2812_output/__init__.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,6 @@ async def run(self, args):
229229
self.logger,
230230
args.endpoint,
231231
queue_size=buffer_size,
232-
deprecated_cancel_on_eof=True,
233232
)
234233
while True:
235234
try:
@@ -239,7 +238,7 @@ async def run(self, args):
239238
data += await asyncio.shield(endpoint.recv(frame_size - partial))
240239
partial = len(data) % frame_size
241240
await self.ws2812_iface.write(data)
242-
except asyncio.CancelledError:
241+
except EOFError:
243242
pass
244243

245244
@classmethod

0 commit comments

Comments
 (0)