diff --git a/lms/djangoapps/instructor_task/views.py b/lms/djangoapps/instructor_task/views.py index 8422ec933242..b1c99529177d 100644 --- a/lms/djangoapps/instructor_task/views.py +++ b/lms/djangoapps/instructor_task/views.py @@ -193,7 +193,7 @@ def get_task_completion_info(instructor_task): # lint-amnesty, pylint: disable= else: # num_succeeded < num_attempted # Translators: {action} is a past-tense verb that is localized separately. {succeeded} and {attempted} are counts. # lint-amnesty, pylint: disable=line-too-long msg_format = _("Problem {action} for {succeeded} of {attempted} students") - elif task_input and task_input.get('course_key'): + elif task_input is not None and task_input.get('course_key'): from ol_openedx_canvas_integration.utils import get_task_output_formatted_message # pylint: disable=import-error msg_format = get_task_output_formatted_message(task_output) succeeded = True