Stellaris

Stellaris

Stellaris Dashboard
stoodlemayer 9 Nov, 2024 @ 11:54pm
Internal Server Error
I keep getting an internal server error in the browser each time I click on my country name to view the log. It only seems to happen with the player country, but it doesn't seem to happen with every game.

I copied this from the dashboard:

2024-11-09 23:42:53,637 - stellarisdashboard.dashboard_app - ERROR - Exception on /history/unitedterra3_1159755119 [GET]
Traceback (most recent call last):
File "flask\app.py", line 2529, in wsgi_app
File "flask\app.py", line 1825, in full_dispatch_request
File "flask\app.py", line 1823, in full_dispatch_request
File "flask\app.py", line 1799, in dispatch_request
File "stellarisdashboard\dashboard_app\history_ledger.py", line 35, in history_page
File "flask\templating.py", line 147, in render_template
File "flask\templating.py", line 130, in _render
File "jinja2\environment.py", line 1304, in render
File "jinja2\environment.py", line 939, in handle_exception
File "D:\Stellaris Dashboard\_internal\stellarisdashboard\dashboard_app\templates\history_page.html", line 1, in top-level template code
{% extends "layout.html" %}
File "D:\Stellaris Dashboard\_internal\stellarisdashboard\dashboard_app\templates\layout.html", line 20, in top-level template code
{% block body %}{% endblock %}
File "D:\Stellaris Dashboard\_internal\stellarisdashboard\dashboard_app\templates\history_page.html", line 686, in block 'body'
{{ event["leader"].leader_class.capitalize() }} {{ links[event["leader"]] | safe }} commanded the
File "jinja2\environment.py", line 487, in getattr
jinja2.exceptions.UndefinedError: 'dict object' has no attribute 'leader'
2024-11-09 23:42:53,637 - werkzeug - INFO - 10.0.1.201 - - [09/Nov/2024 23:42:53] "GET /history/unitedterra3_1159755119?country=1 HTTP/1.1" 500 -