diff --git a/edx_exams/apps/core/management/commands/bulk_add_course_staff.py b/edx_exams/apps/core/management/commands/bulk_add_course_staff.py index a6f32786..8307c74c 100644 --- a/edx_exams/apps/core/management/commands/bulk_add_course_staff.py +++ b/edx_exams/apps/core/management/commands/bulk_add_course_staff.py @@ -53,9 +53,13 @@ def handle(self, *args, **options): batch_size = options['batch_size'] batch_delay = options['batch_delay'] - if csv_path: - with open(csv_path, 'rb') as csv_file: - self.add_course_staff_from_csv(csv_file, batch_size, batch_delay) + # if csv_path: + # with open(csv_path, 'rb') as csv_file: + # self.add_course_staff_from_csv(csv_file, batch_size, batch_delay) + + # if csv_path: + with open(csv_path) as csv_file: + self.add_course_staff_from_csv(csv_file, batch_size, batch_delay) logger.info('Bulk add course staff complete!')