We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4a74741 commit d51bac4Copy full SHA for d51bac4
1 file changed
cms/server/contest/handlers/tasksubmission.py
@@ -266,9 +266,9 @@ def post(self, task_name):
266
elif submission_lang not in contest.languages:
267
error = self._("Language %s not allowed in this contest.") \
268
% submission_lang
269
- if error is not None:
270
- self._send_error(self._("Invalid submission!"), error, task)
271
- return
+ if error is not None:
+ self._send_error(self._("Invalid submission!"), error, task)
+ return
272
273
# Check if submitted files are small enough.
274
if any([len(f[1]) > config.max_submission_length
0 commit comments