diff --git a/cutt/analysis.py b/cutt/analysis.py index b38bc35..7266e34 100644 --- a/cutt/analysis.py +++ b/cutt/analysis.py @@ -153,6 +153,8 @@ def graph_json( ) for c in session.exec(statement2): + if c.user not in player_map: + continue user = player_map[c.user] for i, p_id in enumerate(c.love): if p_id not in player_map: