forked from pool/python-itsdangerous
12 lines
516 B
Diff
12 lines
516 B
Diff
|
--- itsdangerous-2.1.1/src/itsdangerous/timed.py
|
||
|
+++ itsdangerous-2.1.1/src/itsdangerous/timed.py
|
||
|
@@ -126,7 +126,7 @@
|
||
|
if ts_int is not None:
|
||
|
try:
|
||
|
ts_dt = self.timestamp_to_datetime(ts_int)
|
||
|
- except (ValueError, OSError) as exc:
|
||
|
+ except (OverflowError, ValueError, OSError) as exc:
|
||
|
# Windows raises OSError
|
||
|
raise BadTimeSignature(
|
||
|
"Malformed timestamp", payload=value
|