self._gen_error(filename,"Section element %d is not a string (type %s found)"%(n,type(sec_filename)))
fpath=os.path.join(basedir,sec_filename)
@ -129,8 +129,8 @@ class Questions(object):
self._gen_error(filename,"Question %d from section %d (%s) is missing one of the keywords Question, Answer or Type"%(j,i,sec["Section"]))
# check wether the question is a string (else we'll get display errors)
iftype(q["Question"])!=str:
self._gen_error(filename,"Question %d from section %d (%s) needs to have a string as question (put the Question in \"\")"%(j,i,sec["Section"]))
iftype(q["Question"])notin(str,unicode):
self._gen_error(filename,"Question %d from section %d (%s) needs to have a string as question (type found was '%s', maybe put the Question in \"\")"%(j,i,sec["Section"],type(q["Question"])))