getsentry/raven-python — pull request #330 by zupo (2013-07-09 10:14:19+00:00)
Title: Handle recursion errors

In some cases, for example when a frame is App.ZApplication.ZApplicationWrapper, then "frame.f_locals.get('self', None)" raises a maximum recursion depth error. This fix catches these and moves further so Zope continues to run (without the fix Zope breaks) and we still get a (request-less) error report in Sentry.