From: Renaud Barate Date: Thu, 3 Nov 2011 13:32:14 +0000 (+0000) Subject: Fix message display when opening OpenTURNS study and OpenTURNS wrapper file is not... X-Git-Tag: LOGILAB~299 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=da7fbc8d0e97a158f884f48315960678d21c817a;p=tools%2Feficas.git Fix message display when opening OpenTURNS study and OpenTURNS wrapper file is not found --- 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)