Skip to content

Commit 4fdae3c

Browse files
committed
Handle case when we don't have to turn body into a bytestring.
1 parent 31fca58 commit 4fdae3c

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

lti_consumer/outcomes.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ def parse_grade_xml_body(body):
4343
"""
4444
lti_spec_namespace = "http://www.imsglobal.org/services/ltiv1p1/xsd/imsoms_v1p0"
4545
namespaces = {'def': lti_spec_namespace}
46+
data = body.strip()
4647
if isinstance(body, text_type):
4748
data = body.strip().encode('utf-8')
4849

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ def package_data(pkg, roots):
2525

2626
setup(
2727
name='lti_consumer-xblock',
28-
version='1.2.2',
28+
version='1.2.3',
2929
description='This XBlock implements the consumer side of the LTI specification.',
3030
packages=[
3131
'lti_consumer',

0 commit comments

Comments
 (0)