From 929b585c482e840454256742498352929950c944 Mon Sep 17 00:00:00 2001 From: R1kaB3rN <100738684+R1kaB3rN@users.noreply.github.com> Date: Thu, 9 Jan 2025 12:52:15 -0800 Subject: [PATCH] scripts: fix RuntimeError --- .github/scripts/check_imports.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/scripts/check_imports.py b/.github/scripts/check_imports.py index 03354f09..31a36554 100644 --- a/.github/scripts/check_imports.py +++ b/.github/scripts/check_imports.py @@ -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)