Skip to content

Commit 040a747

Browse files
committed
exception handling when lprof fails
1 parent e292831 commit 040a747

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

codeflash/optimization/function_optimizer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -785,7 +785,7 @@ def establish_original_code_baseline(
785785
with progress_bar(f"Establishing original code baseline for {self.function_to_optimize.function_name}"):
786786
assert (test_framework := self.args.test_framework) in ["pytest", "unittest"]
787787
success = True
788-
788+
lprof_results = ''
789789
test_env = os.environ.copy()
790790
test_env["CODEFLASH_TEST_ITERATION"] = "0"
791791
test_env["CODEFLASH_TRACER_DISABLE"] = "1"

0 commit comments

Comments
 (0)