removed the check if it is a string

This commit is contained in:
Hamza Munir
2016-06-27 14:41:05 +05:00
parent 29864eeacf
commit 8f329a70da

View File

@@ -190,7 +190,7 @@ class LoncapaResponse(object):
for prop in self.required_attributes:
prop_value = xml.get(prop)
if prop_value and isinstance(prop_value, str):
if prop_value: # Stripping off the empty strings
prop_value = prop_value.strip()
if not prop_value:
msg = "Error in problem specification: %s missing required attribute %s" % (