fail if requirements type does not exist

Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
This commit is contained in:
Steven Armstrong 2011-10-18 13:20:14 +02:00
parent 64edfc4640
commit e9a0aa1863

View file

@ -158,6 +158,9 @@ class Emulator(object):
requirement_type_name = requirement_parts[0]
requirement_object_id = requirement_parts[1]
# Instantiate type which fails if type does not exist
requirement_type = core.Type(self.type_base_path, requirement_type_name)
# FIXME: Add support for omitted object id == singleton
#if len(requirement_parts) == 1:
#except IndexError: