Commits

Branko Vukelic committed 444a464

Fail silently

  • Participants
  • Parent commits 52fa20e

Comments (0)

Files changed (1)

url_tools/templatetags/urls.py

 def add_params(url, **kwargs):
     if type(url) in [str, unicode]:
         url = UrlHelper(url)
-    url.update_query_data(**kwargs)
-    return url.get_full_path()
+    try:
+        url.update_query_data(**kwargs)
+        return url.get_full_path()
+    except:
+        return ''
 
 
 @register.assignment_tag