Opaque-keys: fix pep8 violations
This commit is contained in:
@@ -67,7 +67,7 @@ class CourseAuthorizationAdminForm(forms.ModelForm): # pylint: disable=R0924
|
||||
try:
|
||||
course_key = SlashSeparatedCourseKey.from_deprecated_string(cleaned_id)
|
||||
except InvalidKeyError:
|
||||
msg = u'Course id invalid.'
|
||||
msg = u'Course id invalid.'
|
||||
msg += u' --- Entered course id was: "{0}". '.format(cleaned_id)
|
||||
msg += 'Please recheck that you have supplied a valid course id.'
|
||||
raise forms.ValidationError(msg)
|
||||
|
||||
@@ -192,7 +192,6 @@ def perform_delegate_email_batches(entry_id, course_id, task_input, action_name)
|
||||
log.warning(u"Task %s: " + format_msg, task_id, course_id, email_obj.course_id)
|
||||
raise ValueError(format_msg % (course_id, email_obj.course_id))
|
||||
|
||||
|
||||
# Fetch the course object.
|
||||
course = get_course(course_id)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user