From 5c8db660216bfe9f580d2153265c86571122a829 Mon Sep 17 00:00:00 2001 From: Awais Qureshi Date: Mon, 30 Sep 2019 13:47:50 +0500 Subject: [PATCH] BOM-841 Python3 fix. --- lms/djangoapps/instructor/views/api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lms/djangoapps/instructor/views/api.py b/lms/djangoapps/instructor/views/api.py index df483f7469..86f705fc4a 100644 --- a/lms/djangoapps/instructor/views/api.py +++ b/lms/djangoapps/instructor/views/api.py @@ -3374,7 +3374,7 @@ def generate_bulk_certificate_exceptions(request, course_id): try: upload_file = request.FILES.get('students_list') if upload_file.name.endswith('.csv'): - students = [row for row in csv.reader(upload_file.read().splitlines())] + students = [row for row in csv.reader(upload_file.read().decode('utf-8').splitlines())] else: general_errors.append(_('Make sure that the file you upload is in CSV format with no ' 'extraneous characters or rows.'))