Validate the args to SSCK
This commit is contained in:
@@ -71,6 +71,7 @@ command again, adding --insert or --delete to edit the list.
|
||||
course_key = CourseKey.from_string(options['course'])
|
||||
except InvalidKeyError:
|
||||
course_key = SlashSeparatedCourseKey.from_deprecated_string(options['course'])
|
||||
print u'Warning: you are using a deprecated format. Please use {} in the future'.format(course_key)
|
||||
course = get_course_by_id(course_key)
|
||||
|
||||
print 'Warning: this command directly edits the list of course tabs in mongo.'
|
||||
|
||||
Reference in New Issue
Block a user