Closed UEWBot closed 2 years ago
Template error: In template /home/ubuntu/dipvis/visualiser/tournament/templates/base.html, error at line 0 'NoneType' object has no attribute 'count' 1 : {% load i18n %} 2 : {% load static %} 3 : <!DOCTYPE html> 4 : {% get_current_language as LANGUAGE_CODE %} 5 : 6 :
7 : 8 : 9 : {% if redirect_url %} 10 :Traceback:
File "/home/ubuntu/.local/lib/python3.5/site-packages/django/core/handlers/exception.py" in inner
File "/home/ubuntu/.local/lib/python3.5/site-packages/django/core/handlers/base.py" in _get_response
File "/home/ubuntu/.local/lib/python3.5/site-packages/django/core/handlers/base.py" in _get_response
File "/home/ubuntu/dipvis/visualiser/tournament/game_views.py" in game_simple
File "/home/ubuntu/.local/lib/python3.5/site-packages/django/shortcuts.py" in render
File "/home/ubuntu/.local/lib/python3.5/site-packages/django/template/loader.py" in render_to_string
File "/home/ubuntu/.local/lib/python3.5/site-packages/django/template/backends/django.py" in render
File "/home/ubuntu/.local/lib/python3.5/site-packages/django/template/base.py" in render
File "/home/ubuntu/.local/lib/python3.5/site-packages/django/template/base.py" in _render
File "/home/ubuntu/.local/lib/python3.5/site-packages/django/template/base.py" in render
File "/home/ubuntu/.local/lib/python3.5/site-packages/django/template/base.py" in render_annotated
File "/home/ubuntu/.local/lib/python3.5/site-packages/django/template/loader_tags.py" in render
File "/home/ubuntu/.local/lib/python3.5/site-packages/django/template/base.py" in _render
File "/home/ubuntu/.local/lib/python3.5/site-packages/django/template/base.py" in render
File "/home/ubuntu/.local/lib/python3.5/site-packages/django/template/base.py" in render_annotated
File "/home/ubuntu/.local/lib/python3.5/site-packages/django/template/loader_tags.py" in render
File "/home/ubuntu/.local/lib/python3.5/site-packages/django/template/base.py" in render
File "/home/ubuntu/.local/lib/python3.5/site-packages/django/template/base.py" in render_annotated
File "/home/ubuntu/.local/lib/python3.5/site-packages/django/template/defaulttags.py" in render
File "/home/ubuntu/.local/lib/python3.5/site-packages/django/template/base.py" in render_annotated
File "/home/ubuntu/.local/lib/python3.5/site-packages/django/template/base.py" in render
File "/home/ubuntu/.local/lib/python3.5/site-packages/django/template/base.py" in resolve
File "/home/ubuntu/.local/lib/python3.5/site-packages/django/template/base.py" in resolve
File "/home/ubuntu/.local/lib/python3.5/site-packages/django/template/base.py" in _resolve_lookup
File "/home/ubuntu/dipvis/visualiser/tournament/models.py" in result_str
Exception Type: AttributeError at /tournaments/9/games/R2GA/ Exception Value: 'NoneType' object has no attribute 'count'
Note that after the "get seven" page, we return with an error if powers aren't assigned to players, but in reality the Games have already been created in the database, so the links to the game details page is valid.
When a game doesn’t have powers assigned. “final_sc” is None, so we can’t access its “count” attribute