Skip to content

Commit

Permalink
Merge pull request #503 from ExaWorks/remove_redundant_check
Browse files Browse the repository at this point in the history
We already check for exec not being null earlier.
  • Loading branch information
hategan authored Feb 14, 2025
2 parents 7088769 + 421d187 commit 9ff496b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/psij/executors/batch/batch_scheduler_executor.py
Original file line number Diff line number Diff line change
Expand Up @@ -668,8 +668,7 @@ def _poll(self) -> None:
jobs_copy = dict(self._jobs)
logger.info('Polling for %s jobs', len(jobs_copy))
try:
if exec:
out = exec._run_command(exec.get_status_command(jobs_copy.keys()))
out = exec._run_command(exec.get_status_command(jobs_copy.keys()))
except subprocess.CalledProcessError as ex:
out = ex.output
exit_code = ex.returncode
Expand Down

0 comments on commit 9ff496b

Please sign in to comment.