Skip to content

Commit 48716a1

Browse files
committed
Update code_context_extractor.py
1 parent 8128559 commit 48716a1

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

codeflash/context/code_context_extractor.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -491,8 +491,7 @@ def parse_code_and_prune_cst(
491491
module, target_functions, helpers_of_helper_functions, remove_docstrings=remove_docstrings
492492
)
493493
else:
494-
msg = f"Unknown code_context_type: {code_context_type}"
495-
raise ValueError(msg)
494+
raise ValueError(f"Unknown code_context_type: {code_context_type}") # noqa: EM102
496495

497496
if not found_target:
498497
raise ValueError("No target functions found in the provided code")

0 commit comments

Comments
 (0)