Skip to content

Commit 0397c3a

Browse files
committed
some minor touch ups needed but this is good
1 parent 4ab32b9 commit 0397c3a

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

codeflash/result/create_pr.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,13 @@ def existing_tests_source_for(
5252
# TODO confirm that original and optimized have the same keys
5353
all_invocation_ids = original_runtimes_all.keys() | optimized_runtimes_all.keys()
5454
for invocation_id in all_invocation_ids:
55-
rel_path = (
56-
Path(invocation_id.test_module_path.replace(".", os.sep)).with_suffix(".py").relative_to(rel_tests_root)
57-
)
55+
try:
56+
rel_path = (
57+
Path(invocation_id.test_module_path.replace(".", os.sep)).with_suffix(".py").relative_to(rel_tests_root)
58+
)
59+
except Exception as e:
60+
logger.debug(e)
61+
continue
5862
if rel_path not in non_generated_tests:
5963
continue
6064
if rel_path not in original_tests_to_runtimes:

0 commit comments

Comments
 (0)