How to catch str exception?
anuraguniyal at yahoo.com
anuraguniyal at yahoo.com
Fri May 15 07:50:59 EDT 2009
> 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
More information about the Python-list
mailing list