Skip to content

Commit

Permalink
scripts: fix RuntimeError
Browse files Browse the repository at this point in the history
  • Loading branch information
R1kaB3rN committed Jan 9, 2025
1 parent dbdc101 commit 929b585
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/scripts/check_imports.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ async def main() -> None: # noqa: D103
sys.exit(1)

# Expect this operation to fail
for future in gather(*[run_subproc(py_bin, file) for file in files]):
ret, file = await future
for future in await gather(*[run_subproc(py_bin, file) for file in files]):
ret, file = future
if ret != 0:
err = f'The following file has an invalid import: {file}'
raise RuntimeError(err)
Expand Down

0 comments on commit 929b585

Please sign in to comment.