Skip to content

Commit 44aa371

Browse files
committed
Print output if any part has an error
1 parent b4fe57d commit 44aa371

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Submission.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,10 @@ def submit(self):
2525
for part_id, _ in enumerate(self.__srcs, 1):
2626
try:
2727
parts[str(part_id)] = {'output': self.__output(part_id)}
28-
except:
28+
except Exception as e:
29+
print('Error in part {}: {}'.format(part_id, e))
2930
parts[str(part_id)] = {'output': '0'}
30-
31+
3132
result, response = self.request(parts)
3233
response = loads(response.decode('utf-8'))
3334
try:

0 commit comments

Comments
 (0)