diff options
Diffstat (limited to 'grc/base/Platform.py')
-rw-r--r-- | grc/base/Platform.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/grc/base/Platform.py b/grc/base/Platform.py index db2bb76888..0cc3fcf1dd 100644 --- a/grc/base/Platform.py +++ b/grc/base/Platform.py @@ -122,7 +122,7 @@ class Platform(_Element): # get block instance and add it to the list of blocks block = self.Block(self._flow_graph, n) key = block.get_key() - if key in self.get_block_keys(): # test against repeated keys + if key in self._blocks: print >> sys.stderr, 'Warning: Block with key "%s" already exists.\n\tIgnoring: %s' % (key, xml_file) else: # store the block self._blocks[key] = block |