]> git.rm.cloudns.org Git - xonotic/xonstat.git/commitdiff
404 when hashkey is not found.
authorAnt Zucaro <azucaro@gmail.com>
Sun, 30 Dec 2012 21:27:28 +0000 (16:27 -0500)
committerAnt Zucaro <azucaro@gmail.com>
Sun, 30 Dec 2012 21:27:28 +0000 (16:27 -0500)
xonstat/views/player.py

index 85142604b09fdef3731a63876d764c4b27f35d7c..24a6f26122f439dfd537c6de2e9ebcd8082ceea0 100644 (file)
@@ -740,13 +740,7 @@ def player_hashkey_info_data(request):
         ranks          = get_ranks(player.player_id)
 
     except Exception as e:
-        raise e
-        player         = None
-        games_played   = None
-        overall_stats  = None
-        fav_maps       = None
-        elos           = None
-        ranks          = None
+        raise pyramid.httpexceptions.HTTPNotFound
 
     return {'player':player,
             'hashkey':hashkey,