Closed Bug 898584 Opened 12 years ago Closed 12 years ago

[traceback] ValueError: year=1 is before 1900; the datetime strftime() methods require year >= 1900

Categories

(Input Graveyard :: Submission, defect, P4)

defect

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: willkg, Assigned: willkg)

Details

(Whiteboard: u=user c=dashboard p=1 s=input.2013q4)

Saw two of these just now. Having seen them before, though. Traceback (most recent call last): File "/data/www/input.mozilla.org/input/vendor/lib/python/django/core/handlers/base.py", line 111, in get_response response = callback(request, *callback_args, **callback_kwargs) File "/usr/lib64/python2.6/site-packages/newrelic-1.11.0.55/newrelic/api/object_wrapper.py", line 216, in __call__ self._nr_instance, args, kwargs) File "/usr/lib64/python2.6/site-packages/newrelic-1.11.0.55/newrelic/hooks/framework_django.py", line 475, in wrapper return wrapped(*args, **kwargs) File "/data/www/input.mozilla.org/input/vendor/lib/python/django/utils/decorators.py", line 91, in _wrapped_view response = view_func(request, *args, **kwargs) File "/data/www/input.mozilla.org/input/vendor/src/django-mobility/mobility/decorators.py", line 23, in wrapper return f(request, *args, **kw) File "/data/www/input.mozilla.org/input/fjord/analytics/views.py", line 287, in dashboard current_search['date_start'] = search_date_start.strftime('%Y-%m-%d') ValueError: year=1 is before 1900; the datetime strftime() methods require year >= 1900
Whiteboard: u=user c=dashboard p=1 s=input.2013q3
This is almost certainly a security scanner or a bot triggering this. However, I hate errors. I'm pretty sure this is a quick fix, too. Bumping this to 2013q4.
Priority: -- → P4
Whiteboard: u=user c=dashboard p=1 s=input.2013q3 → u=user c=dashboard p=1 s=input.2013q4
Assignee: nobody → willkg
Status: NEW → ASSIGNED
Landed in master in https://github.com/mozilla/fjord/commit/44880e3 Pushed to production just now.
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Product: Input → Input Graveyard
You need to log in before you can comment on or make changes to this bug.