Re: [Py2exe-users] Py2exe and try/except Reading myself, I found me incomplete.

The try/except statement is correctly interpreted when the program is 
run under it's .py version.

The half try/except/traceback phenomenon appears only on py2exed 
programs. For me it has only appeared with win32 apis. If the exception 
is about the unexisting file('c:\\\\myfile.wri','r').read(), try/except is 
correctly interpreted in .py and in .exe mode.


le dahut wrote :
> Hello,
> I've noticed that when using win32 api in a try/except statement, if the
> error doesn't appear on the line just after try, I get a
> .exe.log file.
> 
> Example :
> 
> * This genreates .exe.log :
> try:
>       logging.info('mounting printer')
>       w32print.AddPrinterConnection(printer)
> except Exception, e:
>       logging.error('Error mounting printer')
> 
> * This does not :
> logging.info('mounting printer')
> try:
>       w32print.AddPrinterConnection(printer)
> except Exception, e:
>       logging.error('Error mounting printer')
> 
> 
> Any idea ?
> 
> Thanks in advance.
> 

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Py2exe-users mailing list
zi9rpy-fcecq@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/py2exe-users


