|
@@ -56,7 +56,10 @@ class ModelverseKernel(object):
|
|
|
elif isinstance(phase_v, string_types):
|
|
|
if phase_v == "init" and inst_v is None:
|
|
|
#print("%-30s(%s)" % ("PRIMITIVE " + str(self.primitives[inst]), phase_v))
|
|
|
- gen = self.execute_primitive(user_root, inst)
|
|
|
+ try:
|
|
|
+ gen = self.execute_primitive(user_root, inst)
|
|
|
+ except:
|
|
|
+ raise Exception("%s: error: IP points to undefined element and is not executable as primitive.")
|
|
|
else:
|
|
|
#print("%-30s(%s)" % (inst_v["value"], phase_v))
|
|
|
gen = getattr(self, "%s_%s" % (inst_v["value"], phase_v))(user_root)
|