1. Monwara LLC
  2. Untitled project
  3. django-url-tools

Commits

Branko Vukelic  committed 444a464

Fail silently

  • Participants
  • Parent commits 52fa20e
  • Branches master

Comments (0)

Files changed (1)

File url_tools/templatetags/urls.py

View file
  • Ignore whitespace
 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