From da7fbc8d0e97a158f884f48315960678d21c817a Mon Sep 17 00:00:00 2001 From: Renaud Barate Date: Thu, 3 Nov 2011 13:32:14 +0000 Subject: [PATCH] Fix message display when opening OpenTURNS study and OpenTURNS wrapper file is not found --- Ihm/I_MACRO_ETAPE.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Ihm/I_MACRO_ETAPE.py b/Ihm/I_MACRO_ETAPE.py index 8770ce39..e9d1b967 100644 --- a/Ihm/I_MACRO_ETAPE.py +++ b/Ihm/I_MACRO_ETAPE.py @@ -1,4 +1,4 @@ -# -*- coding: utf-8 -*- +# -*- coding: iso-8859-1 -*- # CONFIGURATION MANAGEMENT OF EDF VERSION # ====================================================================== # COPYRIGHT (C) 1991 - 2002 EDF R&D WWW.CODE-ASTER.ORG @@ -863,7 +863,7 @@ class MACRO_ETAPE(I_ETAPE.ETAPE): def make_incl2_except(self,mess=None): l=traceback.format_exception_only("Fichier invalide",sys.exc_info()[1]) - if self.jdc.appli: + if self.jdc.appli is not None: if mess == None : self.jdc.appli.affiche_alerte("Erreur lors de l'evaluation du fichier inclus", message="Le contenu de ce fichier ne sera pas pris en compte\n"+string.join(l) -- 2.39.2