Salome HOME
fix raising exception in algoCreator.__call__()
authoreap <eap@opencascade.com>
Fri, 23 Mar 2012 11:55:39 +0000 (11:55 +0000)
committereap <eap@opencascade.com>
Fri, 23 Mar 2012 11:55:39 +0000 (11:55 +0000)
src/SMESH_SWIG/smeshDC.py

index e70aa88729645a0e1df6f0e64fb7b786906a2036..bd67a223b784b839b5dd6a68b8b9763b2ee714fd 100644 (file)
@@ -4336,7 +4336,7 @@ class algoCreator:
         if self.algoTypeToClass.has_key( algoType ):
             #print "Create algo",algoType
             return self.algoTypeToClass[ algoType ]( self.mesh, geom )
-        raise RuntimeError, "No class found for algo type" % algoType
+        raise RuntimeError, "No class found for algo type %s" % algoType
         return None
 
 # Private class used to substitute and store variable parameters of hypotheses.