Skip to content

Commit ef8833e

Browse files
committed
process.wait_for_end() doesn't raise exception if timeout is not provided, remove unneeded error handling in ruff format handler
1 parent e6493a6 commit ef8833e

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

extensions/fine_python_ruff/fine_python_ruff/format_handler.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -109,10 +109,7 @@ async def format_one(self, file_path: Path, file_content: str) -> tuple[str, boo
109109
ruff_process.write_to_stdin(file_content)
110110
ruff_process.close_stdin() # Signal EOF
111111

112-
try:
113-
await ruff_process.wait_for_end()
114-
except Exception:
115-
... # TODO
112+
await ruff_process.wait_for_end()
116113

117114
if ruff_process.get_exit_code() == 0:
118115
new_file_content = ruff_process.get_output()

0 commit comments

Comments
 (0)