Salome HOME
projects
/
tools
/
sat.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fc6137d
)
sat #20391 : changement API Exception methode message
author
crouzet
<nicolas.crouzet@cea.fr>
Wed, 9 Dec 2020 14:35:44 +0000
(15:35 +0100)
committer
crouzet
<nicolas.crouzet@cea.fr>
Wed, 9 Dec 2020 14:35:44 +0000
(15:35 +0100)
src/__init__.py
patch
|
blob
|
history
diff --git
a/src/__init__.py
b/src/__init__.py
index a45cbc53548306eed3051d67056251f0cedc2616..95bd104faf73f075ba1173a6acd339d9d20efbac 100644
(file)
--- a/
src/__init__.py
+++ b/
src/__init__.py
@@
-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