From 2eb531c76310b9a862d6e0d7950855a92b96b040 Mon Sep 17 00:00:00 2001 From: Ant Zucaro Date: Wed, 24 Dec 2014 22:36:55 -0500 Subject: [PATCH] Fix type error on ARRAY assertion. --- xonstat/views/player.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/xonstat/views/player.py b/xonstat/views/player.py index c3e5120..4b4017f 100644 --- a/xonstat/views/player.py +++ b/xonstat/views/player.py @@ -581,7 +581,10 @@ def player_info_json(request): def player_game_index_data(request): - player_id = request.matchdict['player_id'] + try: + player_id = int(request.matchdict['player_id']) + except: + player_id = -1 game_type_cd = None game_type_descr = None @@ -621,6 +624,7 @@ def player_game_index_data(request): games_played = get_games_played(player_id) except Exception as e: + raise e player = None games = None game_type_cd = None -- 2.39.2