Raise the 404 at the right scope.
authorAnt Zucaro <azucaro@gmail.com>
Sun, 18 Dec 2016 23:26:56 +0000 (18:26 -0500)
committerAnt Zucaro <azucaro@gmail.com>
Sun, 18 Dec 2016 23:26:56 +0000 (18:26 -0500)
xonstat/views/map.py

index ccc1529..ff375e2 100644 (file)
@@ -206,7 +206,7 @@ def map_captimes_data(request):
                 order_by(expr.asc(PlayerCaptime.fastest_cap))
 
     except Exception as e:
-        raise httpexceptions.HTTPNotFound
+        raise HTTPNotFound
 
     map_captimes = Page(mct_q, current_page, items_per_page=20, url=page_url)