# Get the values of the variables and make them a list
for name in ("E", "F", "L", "I"):
var = getSubSObjectByName( studyId, case, name )
- if var == None:
- logger.error("GENERICSOLVER.GetDataFromCase : ERROR! no variable '%s'" % name)
- break
+ if var is None:
+ raise Exception('No variable "%s" was found in case "%s" (entry %s). '
+ 'It is probably not a case for the code DEVIATION.' %
+ (name, case.GetName(), caseEntry))
theCase[ name ] = getValueOfVariable( builder, var )
return theCase