From: Gilles DAVID Date: Tue, 18 Apr 2017 14:29:19 +0000 (+0200) Subject: [PY3] Exception as no longer 'message' attribute X-Git-Tag: V9_0_0~5^2~2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=e7100fb815589851f1cafdfe94aac8670be4b192;p=modules%2Fhomard.git [PY3] Exception as no longer 'message' attribute --- diff --git a/src/tests/Test/test_5.py b/src/tests/Test/test_5.py index 27a0f89f..cad22fd5 100755 --- a/src/tests/Test/test_5.py +++ b/src/tests/Test/test_5.py @@ -169,7 +169,7 @@ Python script for MED meshMEDFile3D.write(ficmed, 2) except Exception as eee: error = 2 - raise Exception('ExportToMEDX() failed. '+eee.message) + raise Exception('ExportToMEDX() failed. ' + str(eee)) # break # @@ -309,7 +309,7 @@ try : if ERROR : raise Exception('Pb in mesh_exec') except Exception as eee: - raise Exception('Pb in mesh_exec: '+eee.message) + raise Exception('Pb in mesh_exec: ' + str(eee)) HOMARD = salome.lcc.FindOrLoadComponent('FactoryServer', 'HOMARD') assert HOMARD is not None, "Impossible to load homard engine" @@ -322,7 +322,7 @@ try : if ERROR : raise Exception('Pb in homard_exec at iteration %d' %ERROR ) except Exception as eee: - raise Exception('Pb in homard_exec: '+eee.message) + raise Exception('Pb in homard_exec: ' + str(eee)) # # Test of the results #