Skip to content

Commit 97de78b

Browse files
committed
try except
1 parent 0dd0962 commit 97de78b

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

codeflash/discovery/discover_unit_tests.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -624,10 +624,9 @@ def process_test_files(
624624
except Exception as e:
625625
logger.debug(str(e))
626626
continue
627-
628-
if not definition or definition[0].type != "function":
629-
continue
630627
try:
628+
if not definition or definition[0].type != "function":
629+
continue
631630
definition_obj = definition[0]
632631
definition_path = str(definition_obj.module_path)
633632

0 commit comments

Comments
 (0)