]> SALOME platform Git repositories - tools/eficas.git/commitdiff
Salome HOME
oubli push
authorPASCALE NOYRET <pascale.noyret@edf.fr>
Mon, 30 May 2022 08:35:55 +0000 (10:35 +0200)
committerPASCALE NOYRET <pascale.noyret@edf.fr>
Mon, 30 May 2022 08:35:55 +0000 (10:35 +0200)
Ihm/I_JDC.py

index e308f4d6a86a516ff923d41e26ed1177a5ac83ad..74b8a48896a0feb5565a90052b3a96feb4c95a11 100644 (file)
@@ -573,7 +573,19 @@ class JDC(I_OBJECT.OBJECT):
         #print ('analyseXML')
         #print (self.procedure)
         self.setCurrentContext()
-        self.analyseFromXML()
+        try :
+            self.analyseFromXML()
+        except Exception as e :
+            print ('Erreur a la generation du fichier comm ')
+            import traceback
+            traceback.print_stack()
+            # Erreur lors de la conversion
+            l=traceback.format_exception(sys.exc_info()[0],sys.exc_info()[1],
+                                         sys.exc_info()[2])
+            self.cr.exception(tr("Impossible de convertir le fichier XML\n %s", ''.join(l)))
+            print (e)
+            return 
+
 
     def registerParametre(self,param):
         """