fix raising exception in algoCreator.__call__()

This commit is contained in:
eap 2012-03-23 11:55:39 +00:00
parent f932a6abb6
commit ae4c8e00df

View 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.