Project

General

Profile

Bug #6197

AmbiguousTimeError when searching events

Added by Jan Mach 6 months ago.

Status:
New
Priority:
Normal
Assignee:
Category:
Development - GUI
Target version:
Start date:
01/20/2020
Due date:
% Done:

0%

Estimated time:
To be discussed:
No

Description

Following error was encountered during daylight saving time switch period:

Message type: ERROR
Location:     /var/mentat/venv/lib/python3.7/site-packages/flask/app.py:1891
Module:       app
Function:     log_exception
Time:         2019-11-03 16:32:16,658

Message:

Exception on /events/dashboard [GET]
Traceback (most recent call last):
  File "/var/mentat/venv/lib/python3.7/site-packages/flask/app.py", line 2446, in wsgi_app
    response = self.full_dispatch_request()
  File "/var/mentat/venv/lib/python3.7/site-packages/flask/app.py", line 1951, in full_dispatch_request
    rv = self.handle_user_exception(e)
  File "/var/mentat/venv/lib/python3.7/site-packages/flask/app.py", line 1820, in handle_user_exception
    reraise(exc_type, exc_value, tb)
  File "/var/mentat/venv/lib/python3.7/site-packages/flask/_compat.py", line 39, in reraise
    raise value
  File "/var/mentat/venv/lib/python3.7/site-packages/flask/app.py", line 1949, in full_dispatch_request
    rv = self.dispatch_request()
  File "/var/mentat/venv/lib/python3.7/site-packages/flask/app.py", line 1935, in dispatch_request
    return self.view_functions[rule.endpoint](**req.view_args)
  File "/var/mentat/venv/lib/python3.7/site-packages/flask_principal.py", line 199, in _decorated
    rv = f(*args, **kw)
  File "/var/mentat/venv/lib/python3.7/site-packages/flask_login/utils.py", line 261, in decorated_view
    return func(*args, **kwargs)
  File "/var/mentat/venv/lib/python3.7/site-packages/flask/views.py", line 89, in view
    return self.dispatch_request(*args, **kwargs)
  File "/var/mentat/venv/lib/python3.7/site-packages/hawat/base.py", line 1502, in dispatch_request
    form = self.get_search_form(flask.request.args)
  File "/var/mentat/venv/lib/python3.7/site-packages/hawat/blueprints/events/__init__.py", line 355, in get_search_form
    return EventDashboardForm(request_args, meta = {'csrf': False})
  File "/var/mentat/venv/lib/python3.7/site-packages/wtforms/form.py", line 212, in __call__
    return type.__call__(cls, *args, **kwargs)
  File "/var/mentat/venv/lib/python3.7/site-packages/flask_wtf/form.py", line 88, in __init__
    super(FlaskForm, self).__init__(formdata=formdata, **kwargs)
  File "/var/mentat/venv/lib/python3.7/site-packages/wtforms/form.py", line 278, in __init__
    self.process(formdata, obj, data=data, **kwargs)
  File "/var/mentat/venv/lib/python3.7/site-packages/wtforms/form.py", line 132, in process
    field.process(formdata)
  File "/var/mentat/venv/lib/python3.7/site-packages/wtforms/fields/core.py", line 290, in process
    self.process_formdata(self.raw_data)
  File "/var/mentat/venv/lib/python3.7/site-packages/hawat/forms.py", line 428, in process_formdata
    dt_local  = localtz.localize(dt_naive, is_dst = None)
  File "/var/mentat/venv/lib/python3.7/site-packages/pytz/tzinfo.py", line 363, in localize
    raise AmbiguousTimeError(dt)
pytz.exceptions.AmbiguousTimeError: 2019-10-27 02:00:00

No data to display

Also available in: Atom PDF