From ccf3c7b89e38965d3e55b310e3e3606722c60b54 Mon Sep 17 00:00:00 2001 From: Pi Date: Sun, 16 Apr 2023 17:24:18 +0100 Subject: [PATCH] Update file_operations.py --- autogpt/commands/file_operations.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autogpt/commands/file_operations.py b/autogpt/commands/file_operations.py index 5350d2f47f36..31500e8e6977 100644 --- a/autogpt/commands/file_operations.py +++ b/autogpt/commands/file_operations.py @@ -185,7 +185,7 @@ def append_to_file(filename: str, text: str, shouldLog: bool = True) -> str: filepath = safe_join(WORKING_DIRECTORY, filename) with open(filepath, "a") as f: f.write(text) - + if shouldLog: log_operation("append", filename)