le dahut pdpdwbmlapostenet strange try wseclookupaccountname except print error shows traceback didnt put lookupaccountname tryexcept statement string error program also switched except tryexcept correctly interpreted say get two behaviours one exception traceback complete talks line containing lookupaccountname entire traceback caller function parents tim golden écrit snipped le dahut im sure bit wrong could point tracebackprint_exc print current exception stdout stderr sure return none line loggingdebugerror stracebackprint_exc probably doesnt want log string error none may incidental issue logon time occur wseclookupaccountname fails except statement called exception thrown well get file logonexelog read traceback finally tracebackprint_exc returns none produce traceback instead really except fact youre getting logonexelog suggests youre using py2exe setup trapping traceback things go stdout case hopefully someone else see clearly cant youre going come really small example doesnt work tjg _______________________________________________ pythonwin32 mailing list kpitckaew45pythonorg httpmailpythonorgmailmanlistinfopythonwin32 _______________________________________________ pythonwin32 mailing list kpitckaew45pythonorg httpmailpythonorgmailmanlistinfopythonwin32 wed 06 aug 2008 091149 0100 pythonwin32 error 1789 logon except really called