summaryrefslogtreecommitdiff
path: root/qface/idl/domain.py
diff options
context:
space:
mode:
Diffstat (limited to 'qface/idl/domain.py')
-rw-r--r--qface/idl/domain.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/qface/idl/domain.py b/qface/idl/domain.py
index 7949e6c..fbd0175 100644
--- a/qface/idl/domain.py
+++ b/qface/idl/domain.py
@@ -55,10 +55,10 @@ class System(object):
return self._moduleMap[name]
# <module>.<Symbol>
(module_name, type_name, fragment_name) = self.split_typename(name)
- if not module_name and type_name:
- click.secho('not able to lookup symbol: {0}'.format(name), fg='red')
- return None
+ if not module_name in self._moduleMap:
+ raise Exception('not able to lookup symbol: {0}'.format(name))
module = self._moduleMap[module_name]
+ # The module lookup calls this function again if the type_name doesn't exist
return module.lookup(type_name, fragment_name)
@staticmethod