Skip to content

Commit 421d187

Browse files
committed
We already check for exec not being null earlier.
1 parent 65a5c83 commit 421d187

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/psij/executors/batch/batch_scheduler_executor.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -668,8 +668,7 @@ def _poll(self) -> None:
668668
jobs_copy = dict(self._jobs)
669669
logger.info('Polling for %s jobs', len(jobs_copy))
670670
try:
671-
if exec:
672-
out = exec._run_command(exec.get_status_command(jobs_copy.keys()))
671+
out = exec._run_command(exec.get_status_command(jobs_copy.keys()))
673672
except subprocess.CalledProcessError as ex:
674673
out = ex.output
675674
exit_code = ex.returncode

0 commit comments

Comments
 (0)