Printing exceptions

Arinté jamarijr at my-deja.com
Mon Jun 12 09:37:56 EDT 2000


My embedded python app sets an exception string, python can easily
print this error using
print sys.exc_value
but, when I try to post it in my MessageBox
pos.alert(sys.exc_value)
the application crashes, I even tried putting the failing part in a
try..catch block and it still crashed (What the...)
Of course
pos.alert("testing this messagebox") works fine

Any suggestions?
thanx


Sent via Deja.com http://www.deja.com/
Before you buy.



More information about the Python-list mailing list