Skip to content

Commit 31bfcd5

Browse files
authored
fix: is_run error with local, group jobs (#2133)
### Description Ran into a bug where executing a workflow locally causes a crash with group jobs. ``` if self.workflow.verbose or (job.is_run and not job.is_group()): ^^^^^^^^^^ AttributeError: 'GroupJob' object has no attribute 'is_run' ``` Swapping the order of the checks fixes this issue; not sure why the CI didn't catch this bug.
1 parent a110ae0 commit 31bfcd5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

snakemake/executors/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -674,7 +674,7 @@ def _callback(self, job, callback, error_callback, future):
674674
error_callback(job)
675675
except (Exception, BaseException) as ex:
676676
self.print_job_error(job)
677-
if self.workflow.verbose or (job.is_run and not job.is_group()):
677+
if self.workflow.verbose or (not job.is_group() and job.is_run):
678678
print_exception(ex, self.workflow.linemaps)
679679
error_callback(job)
680680

0 commit comments

Comments
 (0)