From 480d5e6a350259ca9b17fb4d9d74cc4ddb7e308c Mon Sep 17 00:00:00 2001 From: kaya Date: Tue, 17 Mar 2026 17:40:12 -0400 Subject: [PATCH] Fix TimeoutError construction in exec Refs superfly/sprites-py#18. --- src/sprites/exec.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/sprites/exec.py b/src/sprites/exec.py index 22b3cec..ae52649 100644 --- a/src/sprites/exec.py +++ b/src/sprites/exec.py @@ -179,9 +179,7 @@ async def _run_async(self) -> int: async with asyncio.timeout(self.timeout): return await run_ws_command(self) except asyncio.TimeoutError: - raise TimeoutError( - f"command timed out after {self.timeout}s", timeout=self.timeout - ) from None + raise TimeoutError(f"command timed out after {self.timeout}s") from None else: return await run_ws_command(self)