Skip to content

Commit

Permalink
Print output if any part has an error
Browse files Browse the repository at this point in the history
  • Loading branch information
jtlowery committed Mar 12, 2017
1 parent b4fe57d commit 44aa371
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Submission.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,10 @@ def submit(self):
for part_id, _ in enumerate(self.__srcs, 1):
try:
parts[str(part_id)] = {'output': self.__output(part_id)}
except:
except Exception as e:
print('Error in part {}: {}'.format(part_id, e))
parts[str(part_id)] = {'output': '0'}

result, response = self.request(parts)
response = loads(response.decode('utf-8'))
try:
Expand Down

0 comments on commit 44aa371

Please sign in to comment.