﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
13600	OverflowError not caught in django.views.static.serve	Konstantin Hlyzov	nobody	"I noticed that sometimes I get an ""OverflowError: mktime argument out of range"" error in django.views.static.serve, when a request is made with a strange date, say, request.META contents something like {'HTTP_IF_MODIFIED_SINCE': 'Mon, 28 May 3121 28:25:26 GMT'}.

Python docs say on this that the exceptions raised in mktime are either ValueError (if caught in Python layer) or OverflowError (if caught in C layer).

I suppose it could be fixed with replacing the third endmost line in django.views.static.was_modified_since from actual 
{{{
    except (AttributeError, ValueError):
}}}
to
{{{
    except (AttributeError, ValueError, OverflowError):
}}}
Probably, there has been some reason not to catch OverflowErrors, then sorry."		closed	HTTP handling	1.2		fixed			Ready for checkin	1	0	0	0	0	0
