Re: Exception Middleware not run [was Re: Subclass handle_uncaught_exception]

2012-05-17 Thread Tom Evans
On Thu, May 17, 2012 at 9:51 AM, rorycl wrote: > Hi Tom > > Thanks for your email. > > On May 16, 4:14 pm, Tom Evans wrote: >> On Wed, May 16, 2012 at 12:32 PM, Rory Campbell-Lange >> >> wrote: > >> > I have a view raising a specific exception I would like to catch and >> > provide an HttpRespon

Re: Exception Middleware not run [was Re: Subclass handle_uncaught_exception]

2012-05-17 Thread rorycl
Hi Tom Thanks for your email. On May 16, 4:14 pm, Tom Evans wrote: > On Wed, May 16, 2012 at 12:32 PM, Rory Campbell-Lange > > wrote: > > I have a view raising a specific exception I would like to catch and > > provide an HttpResponse based on this exception. > > If it is one view raising one

Re: Exception Middleware not run [was Re: Subclass handle_uncaught_exception]

2012-05-16 Thread Tom Evans
On Wed, May 16, 2012 at 12:32 PM, Rory Campbell-Lange wrote: > I'm obviously whistling in the breeze here, but I'd be very grateful for > some help. I've provided some more info below. > > I have a view raising a specific exception I would like to catch and > provide an HttpResponse based on this

Re: Exception Middleware not run [was Re: Subclass handle_uncaught_exception]

2012-05-16 Thread Rory Campbell-Lange
I'm obviously whistling in the breeze here, but I'd be very grateful for some help. I've provided some more info below. I have a view raising a specific exception I would like to catch and provide an HttpResponse based on this exception. I cannot trigger the exception middleware either as standar

Exception Middleware not run [was Re: Subclass handle_uncaught_exception]

2012-05-15 Thread Rory Campbell-Lange
On further investigation it appears that the process_exception middleware isn't being called in my case. In other words, /usr/lib/python2.7/dist-packages/django/utils/decorators.py: 92 except Exception, e: 93 import ipdb; ipdb.set_trace() 94