Skip to content

Commit

Permalink
fixup! Explicit exception in file edit
Browse files Browse the repository at this point in the history
  • Loading branch information
Aman Rusia committed Nov 21, 2024
1 parent 38a3be4 commit 2291895
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/wcgw/client/tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -510,7 +510,7 @@ def file_edit(fedit: FileEditFindReplace) -> str:
with open(path_) as f:
content = f.read()

edit_content = edit_content(content, fedit.find_lines, fedit.replace_with_lines)
content = edit_content(content, fedit.find_lines, fedit.replace_with_lines)

with open(path_, "w") as f:
f.write(content)
Expand Down

0 comments on commit 2291895

Please sign in to comment.