aboutsummaryrefslogtreecommitdiffstats
path: root/djangorestframework/renderers.py
diff options
context:
space:
mode:
authorCraig Blaszczyk2012-01-04 18:05:12 +0000
committerCraig Blaszczyk2012-01-04 18:05:12 +0000
commit46e4ba258fd2e74384a6a43b9edbe55754518bc2 (patch)
tree2f392c4543919635e6a17541dc1d98e9d560aaf8 /djangorestframework/renderers.py
parentbe11336dd91f26475a46f41e94c6c0fef25f53f3 (diff)
downloaddjango-rest-framework-46e4ba258fd2e74384a6a43b9edbe55754518bc2.tar.bz2
#75 remove except statements which are overly broad in the exception they catch
Diffstat (limited to 'djangorestframework/renderers.py')
-rw-r--r--djangorestframework/renderers.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/djangorestframework/renderers.py b/djangorestframework/renderers.py
index 0c80f07e..240de69e 100644
--- a/djangorestframework/renderers.py
+++ b/djangorestframework/renderers.py
@@ -246,14 +246,14 @@ class DocumentingTemplateRenderer(BaseRenderer):
form_instance = view.get_bound_form(view.response.cleaned_content, method=method)
if form_instance and not form_instance.is_valid():
form_instance = None
- except:
+ except Exception:
form_instance = None
# If we still don't have a form instance then try to get an unbound form
if not form_instance:
try:
form_instance = view.get_bound_form(method=method)
- except:
+ except Exception:
pass
# If we still don't have a form instance then try to get an unbound form which can tunnel arbitrary content types