Try except - bug?
9974331 at cvm.qc.ca
Tue Dec 30 18:18:08 CET 2003
9974331 at cvm.qc.ca (Askari) wrote in
news:104c369a.0312300851.4f23759e at posting.google.com:
> I have a problem with try except :
> print "bou!"
> raise "ha!"
> except NameError:
> print "error"
> import traceback
> If I run this example alone, I have no problem :
> but I can't understand why doesn't work in my program :
> (too long for a copy and paste)
> (note : it's at line 353)
> (note : the language of this program is in french, sorry)
> when I run my program, I have this error :
> Traceback (most recent call last):
> File "C:\Documents and Settings\Assembleur_Man\Bureau\Crypte.py",
> line 355, in crypte
> NameError: global name 'fileDest' is not defined
> but I know that 'fileDest' is not always defined but I put this line
> in a try-except!? :-( :-S
Ops! For test (to do the error), you must click on button "crypter!" with
More information about the Python-list