diff options
author | Marcel Hellkamp <marc@gsites.de> | 2010-12-28 19:17:06 +0100 |
---|---|---|
committer | Marcel Hellkamp <marc@gsites.de> | 2010-12-28 19:17:06 +0100 |
commit | 28c6671064af0e5fa313e362424549f4a1f5d30d (patch) | |
tree | 587d9b557eb2304324f8e643b831a320a5f8dd71 | |
parent | bc1b9b33e7f5c878a7d4e40029b09364675753c1 (diff) | |
download | bottle-28c6671064af0e5fa313e362424549f4a1f5d30d.tar.gz |
fix: "OverflowError in bottle's parse_date" (#112)
-rwxr-xr-x | bottle.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1217,7 +1217,7 @@ def parse_date(ims): try: ts = email.utils.parsedate_tz(ims) return time.mktime(ts[:8] + (0,)) - (ts[9] or 0) - time.timezone - except (TypeError, ValueError, IndexError): + except (TypeError, ValueError, IndexError, OverflowError): return None |