Skip to content

Commit d57705b

Browse files
- attempting to improve compatibility across Python versions;
1 parent 93c3e01 commit d57705b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/coverup/utils.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ async def subprocess_run(args: str, check: bool = False, timeout: T.Optional[int
6262
else:
6363
output, _ = await process.communicate()
6464

65-
except asyncio.TimeoutError:
65+
except (asyncio.TimeoutError, asyncio.exceptions.TimeoutError):
6666
process.terminate()
6767
await process.wait()
6868
if timeout:

0 commit comments

Comments
 (0)