summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcel Hellkamp <marc@gsites.de>2010-12-28 19:17:06 +0100
committerMarcel Hellkamp <marc@gsites.de>2010-12-28 19:17:06 +0100
commit28c6671064af0e5fa313e362424549f4a1f5d30d (patch)
tree587d9b557eb2304324f8e643b831a320a5f8dd71
parentbc1b9b33e7f5c878a7d4e40029b09364675753c1 (diff)
downloadbottle-28c6671064af0e5fa313e362424549f4a1f5d30d.tar.gz
fix: "OverflowError in bottle's parse_date" (#112)
-rwxr-xr-xbottle.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bottle.py b/bottle.py
index e3ddef8..0404103 100755
--- a/bottle.py
+++ b/bottle.py
@@ -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