]> SALOME platform Git repositories - tools/eficas.git/blobdiff - Noyau/N_MACRO_ETAPE.py
Salome HOME
gestion des listes et label sur 2
[tools/eficas.git] / Noyau / N_MACRO_ETAPE.py
index 99f6146de1bd6d492e445f06ae5b4c6be81b79b5..aad1004faa26e7cab62300d797aafb98ea847890 100644 (file)
@@ -172,13 +172,11 @@ class MACRO_ETAPE(N_ETAPE.ETAPE):
                 sd_prod = apply(sd_prod, (self,), d)
             except (EOFError, self.UserError):
                 raise
-            except:
+            except Exception, exc:
                 if CONTEXT.debug:
                     traceback.print_exc()
-                l = traceback.format_exception(
-                    sys.exc_info()[0], sys.exc_info()[1], sys.exc_info()[2])
-                raise AsException(
-                    "impossible d affecter un type au resultat\n", string.join(l[2:]))
+                raise AsException("impossible d affecter un type au resultat:",
+                                  str(exc))
 
         # on teste maintenant si la SD est réutilisée ou s'il faut la créer
         if self.definition.reentrant != 'n' and self.reuse: