Skip to content

Commit 97c3cac

Browse files
committed
set up empty line profile results if there's an error
1 parent d8246fc commit 97c3cac

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

codeflash/optimization/function_optimizer.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -847,6 +847,7 @@ def establish_original_code_baseline(
847847
f"Couldn't run line profiler for original function {self.function_to_optimize.function_name}"
848848
)
849849
console.rule()
850+
line_profile_results = {'timings':{},'unit':0, 'str_out':''}
850851
benchmarking_results, _ = self.run_and_parse_tests(
851852
testing_type=TestingMode.PERFORMANCE,
852853
test_env=test_env,

0 commit comments

Comments
 (0)