From e7100fb815589851f1cafdfe94aac8670be4b192 Mon Sep 17 00:00:00 2001 From: Gilles DAVID Date: Tue, 18 Apr 2017 16:29:19 +0200 Subject: [PATCH] [PY3] Exception as no longer 'message' attribute --- src/tests/Test/test_5.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 # -- 2.39.2