Commit ecb8e976 by Will Daly

Merge pull request #310 from edx/will/TIM-499

TIM-499: undeclared variable when logging an error
parents bfcb6ff1 acad712c
......@@ -188,6 +188,10 @@ def create_assessment(
>>> feedback = "Your submission was thrilling."
>>> create_assessment("1", "Tim", options_selected, criterion_feedback, feedback, rubric_dict)
"""
# Ensure that this variables is declared so if an error occurs
# we don't get an error when trying to log it!
assessment_dict = None
try:
rubric = rubric_from_dict(rubric_dict)
......
Markdown is supported
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