Commit 8f329a70 by Hamza Munir

removed the check if it is a string

parent 29864eea
...@@ -190,7 +190,7 @@ class LoncapaResponse(object): ...@@ -190,7 +190,7 @@ class LoncapaResponse(object):
for prop in self.required_attributes: for prop in self.required_attributes:
prop_value = xml.get(prop) 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() prop_value = prop_value.strip()
if not prop_value: if not prop_value:
msg = "Error in problem specification: %s missing required attribute %s" % ( msg = "Error in problem specification: %s missing required attribute %s" % (
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment