]> SALOME platform Git repositories - tools/sat.git/commitdiff
Salome HOME
sat #20391 : changement API Exception methode message
authorcrouzet <nicolas.crouzet@cea.fr>
Wed, 9 Dec 2020 14:35:44 +0000 (15:35 +0100)
committercrouzet <nicolas.crouzet@cea.fr>
Wed, 9 Dec 2020 14:35:44 +0000 (15:35 +0100)
src/__init__.py

index a45cbc53548306eed3051d67056251f0cedc2616..95bd104faf73f075ba1173a6acd339d9d20efbac 100644 (file)
@@ -55,8 +55,13 @@ KNOWNFAILURE_STATUS = "KF"
 TIMEOUT_STATUS = "TIMEOUT"
 
 class SatException(Exception):
-    """rename Exception Class"""
-    pass
+    """sat exception class"""
+    def message(self, arg):
+        if sys.version_info[0] >= 3:
+            # message method is not available for python 3.8+
+            return super().msg(arg)
+        else:
+            return super(SatException,self).message(arg)
 
 def ensure_path_exists(p):
     """Create a path if not existing