M
Michael P. Soulier
Hello,
For a GUI app I've tried resetting sys.excepthook to my own
exceptionhandler bound method, which accepts a type, value and traceback
object.
Now, the traceback module has print_exc and format_exc methods that are
supposed to take a traceback object and return a formatted traceback
like the default output. Unfortunately I keep getting 'None' out of
them. Not sure why.
Happens here too.
... traceback.print_exc(tb)
...None
Pretty sure this worked in 1.5.2. Am I doing something wrong here?
I want format_exe especially, since I don't want to print to stdout, I
want to provide the traceback in a popup dialog.
Thanks,
Mike
--
Michael P. Soulier <[email protected]>
http://www.digitaltorque.ca
http://opag.ca python -c 'import this'
Jabber: (e-mail address removed)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)
iD8DBQFCu026KGqCc1vIvggRAusVAJ9dhQtIRM3RFABDNTXbe8ol5NP2TQCgmItT
cavao1soJ0Nrkw23q4nbMys=
=H7vZ
-----END PGP SIGNATURE-----
For a GUI app I've tried resetting sys.excepthook to my own
exceptionhandler bound method, which accepts a type, value and traceback
object.
Now, the traceback module has print_exc and format_exc methods that are
supposed to take a traceback object and return a formatted traceback
like the default output. Unfortunately I keep getting 'None' out of
them. Not sure why.
Happens here too.
... traceback.print_exc(tb)
...None
Pretty sure this worked in 1.5.2. Am I doing something wrong here?
I want format_exe especially, since I don't want to print to stdout, I
want to provide the traceback in a popup dialog.
Thanks,
Mike
--
Michael P. Soulier <[email protected]>
http://www.digitaltorque.ca
http://opag.ca python -c 'import this'
Jabber: (e-mail address removed)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)
iD8DBQFCu026KGqCc1vIvggRAusVAJ9dhQtIRM3RFABDNTXbe8ol5NP2TQCgmItT
cavao1soJ0Nrkw23q4nbMys=
=H7vZ
-----END PGP SIGNATURE-----