From 34f588b999e561b55b4975842b6e5ce3b7624e10 Mon Sep 17 00:00:00 2001 From: crouzet Date: Wed, 9 Dec 2020 15:35:44 +0100 Subject: [PATCH] sat #20391 : changement API Exception methode message --- src/__init__.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) 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 -- 2.39.2