#3721 fix(targets): Catch `TypeError` in addition to `ValueError` when parsing timestamps in received records
Pull request opened by
edgarrmondragon
Summary by Sourcery
Handle and report invalid timestamp parsing errors more robustly when processing records.
Bug Fixes:
• Treat both ValueError and TypeError as invalid timestamp errors when parsing record timestamps and surface them consistently via handle_invalid_timestamp_in_record.
Enhancements:
• Improve error and log messages for invalid timestamp values and chain the original parsing exception as the cause.
Tests:
• Expand invalid timestamp handling tests to cover TypeError inputs, exception chaining, and updated logging behavior.
meltano/sdk