Hi Philipp, Florent
> > There *is* a way to check whether the error resulted from
> the current
> > frame or a lower frame. Introspections like these have the
> tendency to
> > be or become hacks, but then again, we use frame
> inspections in other
> > places, too.
> Yes, I was about to suggest using the standard PJE trick used
> elsewhere in Zope 3 (to check for deep ImportErrors), namely:
> except (TypeError, AttributeError):
> if sys.exce_info().tb_next is not None:
> # here we know the exception was not "deep"
> # so the object isn't callable
Zope3-dev mailing list