Skip to content

Commit d51bac4

Browse files
qnighystefano-maggiolo
authored andcommitted
Fix outputonly regression caused by e16ad23.
1 parent 4a74741 commit d51bac4

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

cms/server/contest/handlers/tasksubmission.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -266,9 +266,9 @@ def post(self, task_name):
266266
elif submission_lang not in contest.languages:
267267
error = self._("Language %s not allowed in this contest.") \
268268
% submission_lang
269-
if error is not None:
270-
self._send_error(self._("Invalid submission!"), error, task)
271-
return
269+
if error is not None:
270+
self._send_error(self._("Invalid submission!"), error, task)
271+
return
272272

273273
# Check if submitted files are small enough.
274274
if any([len(f[1]) > config.max_submission_length

0 commit comments

Comments
 (0)