From 4124d776c70ea5a7cf8bd08223f61bc1c73af348 Mon Sep 17 00:00:00 2001 From: Stephen Burrows Date: Thu, 30 Sep 2010 15:52:07 -0400 Subject: [PATCH] Tweaked nodeview error reraising to preserve traceback information. --- views.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/views.py b/views.py index ab4c216..b3e2a74 100644 --- a/views.py +++ b/views.py @@ -27,7 +27,7 @@ def node_view(request, path=None, **kwargs): return node.render_to_response(request, path=path, subpath=subpath) except Http404, e: if settings.DEBUG: - raise e + raise try: Http404View = node.relationships['Http404'] @@ -42,7 +42,7 @@ def node_view(request, path=None, **kwargs): return Http404View.render_to_response(node, request, path, subpath, extra_context) except Exception, e: if settings.DEBUG: - raise e + raise try: Http500View = node.relationships['Http500'] -- 2.20.1