]> de.git.xonotic.org Git - xonotic/xonstat.git/blobdiff - xonstat/util.py
Remove the try-catch block here. It isn't needed.
[xonotic/xonstat.git] / xonstat / util.py
index 5430fe1a44fb8db9cdb524671d0e146e46e2651e..4ed6aeea18640cfebb88e3aaf984853472bf5629 100644 (file)
@@ -1,6 +1,7 @@
 import sys
 import logging
 import pyramid.httpexceptions
+import pyramid.url
 import re
 from colorsys import rgb_to_hls, hls_to_rgb
 from cgi import escape as html_escape
@@ -228,7 +229,7 @@ def limit_printable_characters(qstr, limit):
 
 
 def page_url(page):
-    return current_route_url(request, page=page, _query=request.GET)
+    return pyramid.url.current_route_url(request, page=page, _query=request.GET)
 
 
 def pretty_date(time=False):