Django

Code

Ticket #641 (closed: fixed)

Opened 3 years ago

Last modified 3 years ago

[patch] Fix re-raise in d.c.h.base

Reported by: Sune Kirkeby <sune.kirkeby@gmail.com> Assigned to: adrian
Milestone: Component: Core framework
Version: Keywords:
Cc: Triage Stage: Unreviewed
Has patch: 1 Needs documentation: 0
Needs tests: 0 Patch needs improvement: 0

Description

=== django/core/handlers/base.py
==================================================================
--- django/core/handlers/base.py        (revision 2884)
+++ django/core/handlers/base.py        (local)
@@ -74,7 +74,7 @@
                     response = middleware_method(request, e)
                     if response:
                         return response
-                raise e
+                raise
 
             # Complain if the view returned None (a common error).
             if response is None:

This fixes the base-handler to properly re-raise exceptions, so you can see where they come from, and not get a completely useless traceback.

Attachments

Change History

10/18/05 20:16:58 changed by adrian

  • status changed from new to closed.
  • resolution set to fixed.

(In [949]) Fixed #641 -- Fixed re-raise in django.core.handlers.base. Thanks, Sune

11/04/05 08:48:57 changed by adrian

(In [1076]) Fixed bug in django.utils.decorators.decorator_from_middleware -- it wasn't raising exceptions. Refs #641


Add/Change #641 ([patch] Fix re-raise in d.c.h.base)




Change Properties
Action