Skip to content

Commit 21a8823

Browse files
authored
Handle allow_submit for the contest in a backwards compatible way in the submit client. (DOMjudge#1814)
1 parent 3f98531 commit 21a8823

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

submit/submit

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -426,7 +426,7 @@ elif contests:
426426
languages = None
427427
problems = None
428428
if my_contest and baseurl:
429-
if not my_contest['allow_submit']:
429+
if 'allow_submit' in my_contest and not my_contest['allow_submit']:
430430
warn_user('Submissions for contest (temporarily) disabled')
431431
exit(1)
432432
languages = read_languages()

0 commit comments

Comments
 (0)