text_combined: tim roberts eqemprobocom sami islam wrote new python code import sys import traceback def myexhooktyp val tb print inside myexhook tbprint_exceptiontyp val tb v b sysexc_info sysexcepthook myexhookt v b x 10 get inside myexhook traceback recent call last file ehomeprogrammingpythontryprojectsexcepthandling1except4py line 11 sysexcepthook myexhookt v b file ehomeprogrammingpythontryprojectsexcepthandling1except4py line 6 myexhook tbprint_exceptiontyp val tb attributeerror print_exception see myexhook called wasnt called previously set sysexcepthook myexhook without parameters parameters print_exception arent try adding print typ val tb myexhook python 24 environment prints none none none thats sysexc_info returns exception wrong sysexcepthook needs set function calling myexhook three garbage parameters passing result none case sysexcepthook myexhook called exception happens exception hook set none right way sysexcepthook myexhook x 10 tried worked fine thats working tell us get tim roberts eqemprobocom providenza boekelheide inc _______________________________________________ pythonwin32 mailing list kpitckaew45pythonorg httpmailpythonorgmailmanlistinfopythonwin32 thu 07 aug 2008 025226 0700 pythonwin32 tracebackprint_exceptiontype val tb working 252