Try except - bug?

Askari 9974331 at cvm.qc.ca
Wed Dec 31 15:00:12 CET 2003


Rene Pijlman <reply.in.the.newsgroup at my.address.is.invalid> wrote in
news:gg95vvs4ni6poiht2siml0htcg9qo73j91 at 4ax.com: 

> Askari:
>>OSError: [Errno 2] No such file or directory: ''
> 
> If I'm not mistaken this is another exception!?
> 
>>at line 355 you have : "fileDest.close()"
> 
> No, line 355 of http://www.cvm.qc.ca/9974331/Temp/crypte.py is:       
>    
> 
>     #afficher confirmation
> 
>>and at line 363 you have : "os.remove(destination)"
> 
> No, line 363 of http://www.cvm.qc.ca/9974331/Temp/crypte.py is: 
> 
>     pass
> 
>>What is your version of python? (I have 2.3.2)
> 
> I use UltraEdit 8.0 on Windows XP to count the line numbers.
> 

Batheme! I didn't know that the exception rest in memory after a "catch". 
Finaly, it's my mistake with use of "sys.exc_info()" at line 368. 

But for # of line; check your ultraedit. Are you sure that the line 1 is 
"#! d:/python23/python" ?




More information about the Python-list mailing list