Merge branch 'master' into zykure/wip
authorJan Behrens <zykure@web.de>
Tue, 11 Mar 2014 13:21:10 +0000 (14:21 +0100)
committerJan Behrens <zykure@web.de>
Tue, 11 Mar 2014 13:21:10 +0000 (14:21 +0100)
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,