From 38cc19e95ba0e6a23725c81733b64cd6d7e29634 Mon Sep 17 00:00:00 2001 From: PASCALE NOYRET Date: Mon, 30 May 2022 10:35:55 +0200 Subject: [PATCH] oubli push --- Ihm/I_JDC.py | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/Ihm/I_JDC.py b/Ihm/I_JDC.py index e308f4d6..74b8a488 100644 --- a/Ihm/I_JDC.py +++ b/Ihm/I_JDC.py @@ -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): """ -- 2.39.2