Skip to content

Commit 8e259a0

Browse files
committed
Catch OverflowError for infinity timestamp values
1 parent 2ad3e0c commit 8e259a0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

customerio/track.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ def _build_event(self, name, data=None, id=None, timestamp=None):
158158
else:
159159
try:
160160
timestamp = int(timestamp)
161-
except (ValueError, TypeError):
161+
except (ValueError, TypeError, OverflowError):
162162
timestamp = None
163163
if timestamp is not None:
164164
post_data["timestamp"] = timestamp

0 commit comments

Comments
 (0)