Skip to content

Commit 47d3ff1

Browse files
Merge pull request codeflash-ai#519 from codeflash-ai/prevent-yet-another-crash
prevent another crash
2 parents 2812dd5 + 072e706 commit 47d3ff1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

codeflash/optimization/optimizer.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -312,6 +312,8 @@ def run(self) -> None:
312312
original_module_ast=original_module_ast,
313313
original_module_path=original_module_path,
314314
)
315+
if function_optimizer is None:
316+
continue
315317

316318
self.current_function_optimizer = (
317319
function_optimizer # needed to clean up from the outside of this function

0 commit comments

Comments
 (0)