From: crouzet Date: Wed, 9 Dec 2020 14:35:44 +0000 (+0100) Subject: sat #20391 : changement API Exception methode message X-Git-Tag: 5.8.0~16 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=34f588b999e561b55b4975842b6e5ce3b7624e10;p=tools%2Fsat.git sat #20391 : changement API Exception methode message --- diff --git a/src/__init__.py b/src/__init__.py index a45cbc5..95bd104 100644 --- 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