Import error consumed - needs to be output
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
waferslim |
New
|
Undecided
|
Unassigned |
Bug Description
Troubleshooting tests run using waferslim is made difficult because of the ImportError consumption that currently happens in ExecutionContext of execution.py. We have modified our code version to output the logging.error message as below.
Cheers Tim
Brad
def get_type(self, fully_qualified
''' Get a type instance from the context '''
dot_pos = fully_qualified
if dot_pos == -1:
for prefix in self._type_
msg = 'Type %s is not in a module: perhaps you want to Import it?'
raise TypeError(msg % fully_qualified
module_part = fully_qualified
type_part = fully_qualified
module = self.get_
try:
_type = getattr(module, type_part)
return _type
except AttributeError:
msg = '%s could not be found in %s' % (type_part, module_part)
raise TypeError(msg)