Skip to content

Commit

Permalink
[htcondor] Fix submission exception handling, close #194.
Browse files Browse the repository at this point in the history
  • Loading branch information
riga committed Nov 6, 2024
1 parent 0156263 commit 9ac6dbc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions law/contrib/htcondor/workflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,9 @@ def _submit_group(self, *args, **kwargs):

# when a log file is present, replace certain htcondor variables
for i, (job_id, (job_num, data)) in enumerate(zip(job_ids, submission_data.items())):
# skip exceptions
if isinstance(job_id, Exception):
continue
log = data.get("log")
if not log:
continue
Expand Down

0 comments on commit 9ac6dbc

Please sign in to comment.