Exceptions thrown in NewRequest subscriber don't get caught by pyramid_debugtoolbar

2013-02-13 Thread Wyatt Baldwin
I have a NewRequest subscriber that's added in main() via config.add_subscriber(). Exceptions thrown in this subscriber aren't caught by pyramid_debugtoolbar. Is this behavior expected? -- You received this message because you are subscribed to the Google Groups pylons-discuss group. To

Re: Exceptions thrown in NewRequest subscriber don't get caught by pyramid_debugtoolbar

2013-02-13 Thread Michael Merickel
Without more info I can say it's not expected on anything after Pyramid 1.0 where NewRequest subscribers explicitly did not support exceptions. On Wed, Feb 13, 2013 at 12:45 PM, Wyatt Baldwin wyatt.lee.bald...@gmail.com wrote: I have a NewRequest subscriber that's added in main() via

Re: Exceptions thrown in NewRequest subscriber don't get caught by pyramid_debugtoolbar

2013-02-13 Thread Wyatt Baldwin
I'm using Pyramid 1.4. pyramid_debugtoolbar is included via the pyramid.includes settings. I'm not using any other includes or tweens. The subscriber is set up like this: def main(global_config, *settings): config = Configurator(settings=settings) def callback(event): Exceptions

Re: Exceptions thrown in NewRequest subscriber don't get caught by pyramid_debugtoolbar

2013-02-13 Thread Michael Merickel
Oh.. that.. yeah. Without providing any useful information, I can just say that I tend to avoid NewRequest subscribers like the plague now that config.add_request_method exists. This sounds like a more fundamental issue with the toolbar. It historically causes all sorts of odd problems that some