From 22918952df6c28a0cd1fc6ea5a336a93d246a647 Mon Sep 17 00:00:00 2001 From: Aman Rusia Date: Thu, 21 Nov 2024 12:58:47 +0530 Subject: [PATCH] fixup! Explicit exception in file edit --- src/wcgw/client/tools.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wcgw/client/tools.py b/src/wcgw/client/tools.py index 9e34fdb..6b4339a 100644 --- a/src/wcgw/client/tools.py +++ b/src/wcgw/client/tools.py @@ -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)