This commit is contained in:
cuom1999 2023-01-04 15:57:10 -06:00
parent 48adf7e6b8
commit bb78b743dd

View file

@ -160,7 +160,7 @@ class SubmissionSource(SubmissionDetailBase):
def get_hidden_subtasks(request, submission):
contest = submission.contest_object
if contest.is_editable_by(request.user):
if contest and contest.is_editable_by(request.user):
return set()
if contest and contest.format.has_hidden_subtasks:
try: