From: Ant Zucaro Date: Thu, 25 Dec 2014 03:36:55 +0000 (-0500) Subject: Fix type error on ARRAY assertion. X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=2eb531c76310b9a862d6e0d7950855a92b96b040;p=xonotic%2Fxonstat.git Fix type error on ARRAY assertion. --- 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