From 4fdae3c5ba6100489d535540fd270996e5b52490 Mon Sep 17 00:00:00 2001 From: Diana Huang <dkh@edx.org> Date: Wed, 11 Dec 2019 10:56:28 -0500 Subject: [PATCH] Handle case when we don't have to turn body into a bytestring. --- lti_consumer/outcomes.py | 1 + setup.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/lti_consumer/outcomes.py b/lti_consumer/outcomes.py index e166eb5..88c804b 100644 --- a/lti_consumer/outcomes.py +++ b/lti_consumer/outcomes.py @@ -43,6 +43,7 @@ def parse_grade_xml_body(body): """ lti_spec_namespace = "http://www.imsglobal.org/services/ltiv1p1/xsd/imsoms_v1p0" namespaces = {'def': lti_spec_namespace} + data = body.strip() if isinstance(body, text_type): data = body.strip().encode('utf-8') diff --git a/setup.py b/setup.py index 6b8a22f..f623e7e 100644 --- a/setup.py +++ b/setup.py @@ -25,7 +25,7 @@ def package_data(pkg, roots): setup( name='lti_consumer-xblock', - version='1.2.2', + version='1.2.3', description='This XBlock implements the consumer side of the LTI specification.', packages=[ 'lti_consumer', -- GitLab