Skip to content
Snippets Groups Projects
Commit 7089a3fb authored by Matt Hughes's avatar Matt Hughes Committed by Matt Hughes
Browse files

build: man. comm. fails more loudly when nothing to do

JIRA:EDUCATOR-5112
parent 035dfd85
Branches
Tags
No related merge requests found
......@@ -44,6 +44,8 @@ class Command(BaseCommand):
instructor = self.get_user(options['instructor'])
course_runs = get_course_runs()
if len(course_runs) == 0:
raise CommandError('No course runs to synchronize')
for course_run in course_runs:
course_key = CourseKey.from_string(course_run.get('key'))
fields = {
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment