Project

General

Profile

Actions

Bug #7589

closed

Timeline search crashes on specific query

Added by Rajmund Hruška about 2 years ago. Updated almost 2 years ago.

Status:
Closed
Priority:
Normal
Category:
Development - GUI
Target version:
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 #1

Updated by Rajmund Hruška about 2 years ago

  • Status changed from New to Resolved
  • % Done changed from 0 to 100
Actions #2

Updated by Rajmund Hruška about 2 years ago

  • Status changed from Resolved to In Review

Merged into devel and deployed on mentat-alt.

Actions #3

Updated by Pavel Kácha almost 2 years ago

  • Status changed from In Review to Closed
Actions

Also available in: Atom PDF