sami islam ajnc_ictothotmailcom hello 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 wrong thanks sami _________________________________________________________________ amazing prizes every hour live search big snap httpwwwbigsnapsearchcom thu 07 aug 2008 091431 0000 pythonwin32 tracebackprint_exceptiontype val tb working 252