> try: > raise "abc" > except: > e, t, tb = sys.exc_info() > if not isinstance(e, str): > raise > print "caught", e
This seems to be the solution, thanks -- http://mail.python.org/mailman/listinfo/python-list
> try: > raise "abc" > except: > e, t, tb = sys.exc_info() > if not isinstance(e, str): > raise > print "caught", e
This seems to be the solution, thanks -- http://mail.python.org/mailman/listinfo/python-list