diff --git a/inginious/common/tasks_problems.py b/inginious/common/tasks_problems.py index fd07d16b8..f7eb00e62 100644 --- a/inginious/common/tasks_problems.py +++ b/inginious/common/tasks_problems.py @@ -187,6 +187,7 @@ def parse_problem(self, problem_content): offset = int(problem_content["offset"]) if offset < 1: raise Exception("Line offset must be positive!") + problem_content["offset"] = offset except ValueError: raise Exception("Line offset must be an integer!") return Problem.parse_problem(problem_content)