On Sat, Nov 6, 2010 at 1:52 PM, Roy Smith <r...@panix.com> wrote:
>
> import sys
> try:
>    import xx
> except ImportError:
>    tb = sys.exc_traceback
>    while tb:
>        print tb
>        tb = tb.tb_next
>

I went ahead and implemented this and it now works. I even uncovered a
bug I wasn't previously seeing because now the program was failing
early! :)

I hope there isn't a hidden naivete in using this pattern.

Thanks,
Jon
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to