diff options
| author | Tom Christie | 2012-09-28 10:11:12 +0100 |
|---|---|---|
| committer | Tom Christie | 2012-09-28 10:11:12 +0100 |
| commit | 62ccc1a306ba59cb843dbb8fb2b1c2e21c84166a (patch) | |
| tree | 56caffb84234e81e2625cbf1f9a513cb58a3ccbb | |
| parent | ee36e4ab0c0508a590c6b73a23ec82b7f1e49bd0 (diff) | |
| download | django-rest-framework-62ccc1a306ba59cb843dbb8fb2b1c2e21c84166a.tar.bz2 | |
Fix failing tests
| -rw-r--r-- | rest_framework/templatetags/rest_framework.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/rest_framework/templatetags/rest_framework.py b/rest_framework/templatetags/rest_framework.py index deabd11c..377fd489 100644 --- a/rest_framework/templatetags/rest_framework.py +++ b/rest_framework/templatetags/rest_framework.py @@ -53,7 +53,7 @@ def optional_login(request): """ try: login_url = reverse('rest_framework:login') - except NoReverseMatch: + except: return '' snippet = "<a href='%s?next=%s'>Log in</a>" % (login_url, request.path) @@ -67,7 +67,7 @@ def optional_logout(request): """ try: logout_url = reverse('rest_framework:logout') - except NoReverseMatch: + except: return '' snippet = "<a href='%s?next=%s'>Log out</a>" % (logout_url, request.path) |
