[cig-commits] [commit] master: Correct validate parameter exception message (52fc298)

cig_noreply at geodynamics.org cig_noreply at geodynamics.org
Sat Dec 13 16:19:37 PST 2014


Repository : https://github.com/geodynamics/burnman

On branch  : master
Link       : https://github.com/geodynamics/burnman/compare/fb1efda477c84dda519a26fcd6480eef1f23c1cf...a2a7ea5dbd2bbbb7bb8c207b3e569e3967a4c47b

>---------------------------------------------------------------

commit 52fc2986c458232a3fb53684a02cf5323c722f37
Author: Bob Myhill <myhill.bob at gmail.com>
Date:   Sat Dec 13 13:20:12 2014 -0800

    Correct validate parameter exception message


>---------------------------------------------------------------

52fc2986c458232a3fb53684a02cf5323c722f37
 burnman/mineral.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/burnman/mineral.py b/burnman/mineral.py
index f1ece62..1269143 100644
--- a/burnman/mineral.py
+++ b/burnman/mineral.py
@@ -72,7 +72,8 @@ class Mineral(Material):
         try:
             self.method.validate_parameters(self.params)
         except Exception as e:
-            raise Exception('Mineral ' + self.to_string() + 'failed to validate parameters with message : \" ' + e.message + '\"' )
+            print 'Mineral ' + self.to_string() + ' failed to validate parameters with message : \" ' + e.message + '\"'
+            raise
 
     def to_string(self):
         """



More information about the CIG-COMMITS mailing list