Skip to content

Commit 50487d6

Browse files
authored
Merge pull request #925 from codeflash-ai/capture-unknown-comparator-types
log unknown comparator input types
2 parents c821e67 + a27a45f commit 50487d6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

codeflash/verification/comparator.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -289,6 +289,7 @@ def comparator(orig: Any, new: Any, superset_obj=False) -> bool: # noqa: ANN001
289289
return True
290290
# TODO : Add other types here
291291
logger.warning(f"Unknown comparator input type: {type(orig)}")
292+
sentry_sdk.capture_exception(RuntimeError(f"Unknown comparator input type: {type(orig)}"))
292293
return False # noqa: TRY300
293294
except RecursionError as e:
294295
logger.error(f"RecursionError while comparing objects: {e}")

0 commit comments

Comments
 (0)