diff --git a/judge/views/problem.py b/judge/views/problem.py index 450f017..132b2d2 100644 --- a/judge/views/problem.py +++ b/judge/views/problem.py @@ -1194,7 +1194,9 @@ def problem_submit(request, problem, submission=None): "ACE_URL": settings.ACE_URL, "default_lang": default_lang, "problem_id": problem.id, - "output_only": problem.data_files.output_only, + "output_only": problem.data_files.output_only + if hasattr(problem, "data_files") + else False, }, )