From 44f10be03c58679a3f80cb722997a71840c48283 Mon Sep 17 00:00:00 2001 From: Farhanah Sheets Date: Mon, 5 Nov 2018 13:51:38 -0500 Subject: [PATCH] Unicode developer_message to handle Spanish failures --- lms/djangoapps/courseware/access_response.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lms/djangoapps/courseware/access_response.py b/lms/djangoapps/courseware/access_response.py index e3bdfeb8d0..0784ed8923 100644 --- a/lms/djangoapps/courseware/access_response.py +++ b/lms/djangoapps/courseware/access_response.py @@ -173,10 +173,10 @@ class IncorrectPartitionGroupError(AccessError): """ def __init__(self, partition, user_group, allowed_groups, user_message=None, user_fragment=None): error_code = "incorrect_user_group" - developer_message = "In partition {}, user was in group {}, but only {} are allowed access".format( + developer_message = u"In partition {}, user was in group {}, but only {} are allowed access".format( partition.name, user_group.name if user_group is not None else user_group, - ", ".join(group.name for group in allowed_groups), + u", ".join(group.name for group in allowed_groups), ) super(IncorrectPartitionGroupError, self).__init__( error_code=error_code,