aboutsummaryrefslogtreecommitdiffstats
path: root/djangorestframework/utils/breadcrumbs.py
diff options
context:
space:
mode:
authorMarko Tibold2012-01-04 10:19:40 -0800
committerMarko Tibold2012-01-04 10:19:40 -0800
commitb745d0c2f46b901ed7a6b8e92d4ea3faf2a47736 (patch)
tree2f392c4543919635e6a17541dc1d98e9d560aaf8 /djangorestframework/utils/breadcrumbs.py
parentbe11336dd91f26475a46f41e94c6c0fef25f53f3 (diff)
parent46e4ba258fd2e74384a6a43b9edbe55754518bc2 (diff)
downloaddjango-rest-framework-b745d0c2f46b901ed7a6b8e92d4ea3faf2a47736.tar.bz2
Merge pull request #109 from jakul/bare_except_stmts
Change 'except' for 'except Exception' (Fixes issue #75)
Diffstat (limited to 'djangorestframework/utils/breadcrumbs.py')
-rw-r--r--djangorestframework/utils/breadcrumbs.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/djangorestframework/utils/breadcrumbs.py b/djangorestframework/utils/breadcrumbs.py
index 6cf978ed..fd966282 100644
--- a/djangorestframework/utils/breadcrumbs.py
+++ b/djangorestframework/utils/breadcrumbs.py
@@ -11,7 +11,7 @@ def get_breadcrumbs(url):
try:
(view, unused_args, unused_kwargs) = resolve(url)
- except:
+ except Exception:
pass
else:
# Check if this is a REST framework view, and if so add it to the breadcrumbs