Actions
Bug #7589
closedTimeline search crashes on specific query
Start date:
06/03/2022
Due date:
% Done:
100%
Estimated time:
To be discussed:
No
Description
Message type: ERROR
Location: /var/mentat/venv/lib/python3.7/site-packages/vial/app.py:168
Module: app
Function: log_exception
Time: 2022-02-24 12:55:47,004
Message:
Exception on /timeline/search?dt_from=&dt_to=&detectors=cz.cesnet.ftas&submit=Search [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_login/utils.py", line 272, 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/vial/view/__init__.py", line 1023, in dispatch_request
self.do_before_search(form_data)
File "/var/mentat/venv/lib/python3.7/site-packages/hawat/blueprints/timeline/__init__.py", line 148, in do_before_search
flask.current_app.config['HAWAT_CHART_TIMELINE_MAXSTEPS']
File "/var/mentat/venv/lib/python3.7/site-packages/mentat/stats/idea.py", line 708, in calculate_timeline_config
dt_from, dt_to, delta = _calculate_timeline_boundaries(dt_from, dt_to) # pylint: disable=locally-disabled,unused-variable
File "/var/mentat/venv/lib/python3.7/site-packages/mentat/stats/idea.py", line 1048, in _calculate_timeline_boundaries
delta = dt_to - dt_from
TypeError: unsupported operand type(s) for -: 'datetime.datetime' and 'NoneType'
Actions