Skip to content

Commit

Permalink
Use SafePopen.
Browse files Browse the repository at this point in the history
  • Loading branch information
tikk3r committed Oct 24, 2019
1 parent 39bd6e7 commit 723ad50
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion GRID_LRT/application/submit.py
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,7 @@ def launch(self, database=None):
self._check_authorized()
if not self.temp_file:
self.temp_file = self.make_temp_slurmfile(database = database)
sub = subprocess.Popen(['sbatch', self.temp_file.name], stdout=subprocess.PIPE, stderr=subprocess.PIPE)
sub = SafePopen(['sbatch', self.temp_file.name], stdout=subprocess.PIPE, stderr=subprocess.PIPE)
out = sub.communicate()
if out[1] == "":
return out[0]
Expand Down

0 comments on commit 723ad50

Please sign in to comment.