]> de.git.xonotic.org Git - xonotic/xonstat.git/blobdiff - xonstat/views/player.py
Merge branch 'master' into zykure/wip
[xonotic/xonstat.git] / xonstat / views / player.py
index 2041290a360b6987c4362a21de1b49e2a2b078bf..6b0b9459f8abe760bdf0f3e211b6fee0e26c3bdb 100644 (file)
@@ -526,16 +526,9 @@ def player_info_data(request):
         cake_day       = is_cake_day(player.create_dt)
 
     except Exception as e:
-        player         = None
-        games_played   = None
-        overall_stats  = None
-        fav_maps       = None
-        elos           = None
-        ranks          = None
-        recent_games   = None
-        recent_weapons = []
-        cake_day       = False
-        ## do not raise exceptions here (only for debugging)
+        raise pyramid.httpexceptions.HTTPNotFound
+
+        ## do not raise application exceptions here (only for debugging)
         # raise e
 
     return {'player':player,