From 7bb780335dd6578dc593368b044e8a2bf2d73bef Mon Sep 17 00:00:00 2001 From: Carson Gee Date: Tue, 5 Aug 2014 11:51:49 -0400 Subject: [PATCH] Correct UnboundLocalError exception in student_migration_35 --- common/djangoapps/student/migrations/0035_access_roles.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/djangoapps/student/migrations/0035_access_roles.py b/common/djangoapps/student/migrations/0035_access_roles.py index 4b22a7e5cd..ede453ba1c 100644 --- a/common/djangoapps/student/migrations/0035_access_roles.py +++ b/common/djangoapps/student/migrations/0035_access_roles.py @@ -97,7 +97,7 @@ class Migration(DataMigration): if correct_course_key is None: hold.setdefault(course_id_string, []).append(group) else: - _migrate_users(correct_course_key, role, course_key.org) + _migrate_users(correct_course_key, role, correct_course_key.org) # see if any in hold were missed above for held_auth_scope, groups in hold.iteritems():