From d57705b0760c2e7a01e964a92306b31f165190a8 Mon Sep 17 00:00:00 2001 From: Juan Altmayer Pizzorno Date: Thu, 5 Sep 2024 09:02:46 -0400 Subject: [PATCH] - attempting to improve compatibility across Python versions; --- src/coverup/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/coverup/utils.py b/src/coverup/utils.py index a23ebdb..33d96d3 100644 --- a/src/coverup/utils.py +++ b/src/coverup/utils.py @@ -62,7 +62,7 @@ async def subprocess_run(args: str, check: bool = False, timeout: T.Optional[int else: output, _ = await process.communicate() - except asyncio.TimeoutError: + except (asyncio.TimeoutError, asyncio.exceptions.TimeoutError): process.terminate() await process.wait() if timeout: