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 f252fde4..a6f32786 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,7 +53,7 @@ def handle(self, *args, **options): batch_size = options['batch_size'] batch_delay = options['batch_delay'] - if csv: + if csv_path: with open(csv_path, 'rb') as csv_file: self.add_course_staff_from_csv(csv_file, batch_size, batch_delay)