Skip to content

Commit

Permalink
- attempting to improve compatibility across Python versions;
Browse files Browse the repository at this point in the history
  • Loading branch information
jaltmayerpizzorno committed Sep 5, 2024
1 parent 93c3e01 commit d57705b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/coverup/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit d57705b

Please sign in to comment.