From b4fe57d760e9ae7c788b95aa9ff6fe1cf6d36ad6 Mon Sep 17 00:00:00 2001 From: Joel Lowery Date: Sun, 12 Mar 2017 18:24:36 -0500 Subject: [PATCH] Change Submission to submit 0 for a part that errors to allow for partial submissions --- Submission.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Submission.py b/Submission.py index d5b3994..2dbbeea 100644 --- a/Submission.py +++ b/Submission.py @@ -23,8 +23,11 @@ def submit(self): parts = OrderedDict() for part_id, _ in enumerate(self.__srcs, 1): - parts[str(part_id)] = {'output': self.__output(part_id)} - + try: + parts[str(part_id)] = {'output': self.__output(part_id)} + except: + parts[str(part_id)] = {'output': '0'} + result, response = self.request(parts) response = loads(response.decode('utf-8')) try: