Salome HOME
PN vielles macros
[tools/eficas.git] / convert / parseur_python.py
index e7704a64d14493ebe7138946f07b86d7d5ac35db..789f2a1c6be347f789b842b95cded93aa80f6ebc 100644 (file)
@@ -309,7 +309,10 @@ class PARSEUR_PYTHON:
                                 commande_courante = None
                         else:
                             #--> poursuite d'une affectation
-                            affectation_courante.append_text(ligne)
+                           # PN -- pour Empecher une erreur pas propre
+                           if affectation_courante != None :
+                               affectation_courante.append_text(ligne)
+                            #affectation_courante.append_text(ligne)
 
 
     def get_texte(self):