Skip to content

Commit

Permalink
Change Submission to submit 0 for a part that errors to allow for par…
Browse files Browse the repository at this point in the history
…tial submissions
  • Loading branch information
jtlowery committed Mar 12, 2017
1 parent 0314610 commit b4fe57d
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Submission.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit b4fe57d

Please sign in to comment.