graphics/FBD_Objects.py
changeset 16 20dcc0dce64b
parent 5 f8652b073e84
child 27 dae55dd9ee14
--- a/graphics/FBD_Objects.py	Wed Jun 06 17:54:33 2007 +0200
+++ b/graphics/FBD_Objects.py	Mon Jun 11 14:56:25 2007 +0200
@@ -151,6 +151,8 @@
                     for i in xrange(self.Extension - len(blocktype["inputs"])):
                         start += 1
                         inputs.append(("IN%d"%start, inputs[-1][1], input[-1][2]))
+            else:
+                raise ValueError, "This block type isn't defined"
             self.Clean()
             # Extract the inputs properties and create the corresponding connector
             self.Inputs = []