louking / rrwebapp

Race Results Web Application
0 stars 1 forks source link

exception: AttributeError: 'NoneType' object has no attribute 'series' #608

Open louking opened 7 months ago

louking commented 7 months ago

also seen for

Message type:       ERROR
Location:           /var/www/[scoretility.com/venv/lib/python3.9/site-packages/flask/app.py:1741](http://scoretility.com/venv/lib/python3.9/site-packages/flask/app.py:1741)
Module:             app
Function:           log_exception
Time:               2024-04-27 11:02:03,216
User:               anonymous

Message:

Exception on /seriesresults/46797 [GET]
Message type:       ERROR
Location:           /var/www/[scoretility.com/venv/lib/python3.9/site-packages/flask/app.py:1741](http://scoretility.com/venv/lib/python3.9/site-packages/flask/app.py:1741)
Module:             app
Function:           log_exception
Time:               2024-04-26 23:34:33,377
User:               anonymous

Message:

Exception on /seriesresults/46795 [GET]

Traceback (most recent call last):
  File "/var/www/[scoretility.com/venv/lib/python3.9/site-packages/flask/app.py](http://scoretility.com/venv/lib/python3.9/site-packages/flask/app.py)", line 2525, in wsgi_app
    response = self.full_dispatch_request()
  File "/var/www/[scoretility.com/venv/lib/python3.9/site-packages/flask/app.py](http://scoretility.com/venv/lib/python3.9/site-packages/flask/app.py)", line 1822, in full_dispatch_request
    rv = self.handle_user_exception(e)
  File "/var/www/[scoretility.com/venv/lib/python3.9/site-packages/flask/app.py](http://scoretility.com/venv/lib/python3.9/site-packages/flask/app.py)", line 1820, in full_dispatch_request
    rv = self.dispatch_request()
  File "/var/www/[scoretility.com/venv/lib/python3.9/site-packages/flask/app.py](http://scoretility.com/venv/lib/python3.9/site-packages/flask/app.py)", line 1796, in dispatch_request
    return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args)
  File "/var/www/[scoretility.com/venv/lib/python3.9/site-packages/flask/views.py](http://scoretility.com/venv/lib/python3.9/site-packages/flask/views.py)", line 107, in view
    return current_app.ensure_sync(self.dispatch_request)(**kwargs)
  File "/var/www/[scoretility.com/venv/lib/python3.9/site-packages/flask/views.py](http://scoretility.com/venv/lib/python3.9/site-packages/flask/views.py)", line 188, in dispatch_request
    return current_app.ensure_sync(meth)(**kwargs)
  File "/var/www/[scoretility.com/rrwebapp/rrwebapp/views/frontend/userviews.py](http://scoretility.com/rrwebapp/rrwebapp/views/frontend/userviews.py)", line 45, in get
    if len(race.series) == 0:
AttributeError: 'NoneType' object has no attribute 'series'