Skip to content
Snippets Groups Projects
Unverified Commit 6e2c5f00 authored by Manjinder Singh's avatar Manjinder Singh Committed by GitHub
Browse files

Merge pull request #21867 from edx/msingh/python3_certificates

BOM-749: Fixing error in test_certificates.py
parents 139d1330 c05d469a
No related branches found
Tags release-2021-03-25-11.22
No related merge requests found
......@@ -237,6 +237,8 @@ class CertificateManager(object):
Deserialize from a JSON representation into a Certificate object.
'value' should be either a Certificate instance, or a valid JSON string
"""
if not six.PY2 and isinstance(value, bytes):
value = value.decode('utf-8')
# Ensure the schema fieldset meets our expectations
for key in ("name", "description", "version"):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment