diff --git a/stellarisdashboard/parsing/timeline.py b/stellarisdashboard/parsing/timeline.py index f8ac651..6e592ea 100644 --- a/stellarisdashboard/parsing/timeline.py +++ b/stellarisdashboard/parsing/timeline.py @@ -1128,7 +1128,7 @@ def _check_known_leaders(self, db_active_leaders: Dict[int, datamodel.Leader]): country = self._countries_by_ingame_id.get(leader_dict.get("country")) self._update_leader_attributes(country=country, leader=leader, leader_dict=leader_dict) if not leader.is_active: - country_data = leader.country.get_most_recent_data() if country is not None else None + country_data = leader.country.get_most_recent_data() if leader.country is not None else None self._session.add( datamodel.HistoricalEvent( event_type=datamodel.HistoricalEventType.leader_died,