From 8f329a70da5fcc790fbacfeaff41b6b2325da021 Mon Sep 17 00:00:00 2001 From: Hamza Munir Date: Mon, 27 Jun 2016 14:41:05 +0500 Subject: [PATCH] removed the check if it is a string --- common/lib/capa/capa/responsetypes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/lib/capa/capa/responsetypes.py b/common/lib/capa/capa/responsetypes.py index b572069000..51a18ba886 100644 --- a/common/lib/capa/capa/responsetypes.py +++ b/common/lib/capa/capa/responsetypes.py @@ -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" % (