Skip to content

Commit

Permalink
dispatching error printing to object __str__.
Browse files Browse the repository at this point in the history
  • Loading branch information
weinbe58 committed Sep 28, 2023
1 parent bb61cfe commit 8487253
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions src/bloqade/task/batch.py
Original file line number Diff line number Diff line change
Expand Up @@ -442,15 +442,8 @@ def _submit(
RuntimeWarning,
)
else:
msg = ""
for task_index, error in errors.task_errors.items():
msg += (
f"Task {task_index} failed to submit with error: "
f"{error.exception_type}\n"
f"{error.stack_trace}"
)
raise RemoteBatch.SubmissionException(
msg
str(errors)
+ "\n"
+ "One or more error(s) occured during submission, please see "
"the following files for more information:\n"
Expand Down

0 comments on commit 8487253

Please sign in to comment.