Skip to content

Commit

Permalink
Removed extraneous traceback upon user interruption.
Browse files Browse the repository at this point in the history
  • Loading branch information
soravux committed Apr 20, 2016
1 parent 3f84f67 commit a576bf1
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
5 changes: 4 additions & 1 deletion scoop/launch/__main__.py
Expand Up @@ -96,7 +96,10 @@ def launchBootstraps():
if was_origin:
# Only wait on the origin, this will return and notify the launcher
# the the job has finished and start the cleanup phase
processes[0].wait()
try:
processes[0].wait()
except KeyboardInterrupt:
pass
else:
for p in processes:
p.wait()
Expand Down
11 changes: 7 additions & 4 deletions scoop/launcher.py
Expand Up @@ -307,10 +307,13 @@ def run(self):
rootProcess = shells[0][0]

# Wait for the root program
if self.workers[0].isLocal():
self.errors = self.workers[0].subprocesses[0].wait()
else:
self.errors = rootProcess.wait()
try:
if self.workers[0].isLocal():
self.errors = self.workers[0].subprocesses[0].wait()
else:
self.errors = rootProcess.wait()
except KeyboardInterrupt:
pass
scoop.logger.info('Root process is done.')
return self.errors

Expand Down

0 comments on commit a576bf1

Please sign in to comment.