Fixed os.terminate() error when the process has already finished.

This commit is contained in:
Michael Lazar
2015-12-03 22:16:29 -08:00
parent 2fa5adc7ce
commit 6f0773df31

View File

@@ -313,7 +313,10 @@ class Terminal(object):
# Can't check the loader exception because the oauth module
# supersedes this loader and we need to always kill the
# process if escape is pressed
p.terminate()
try:
p.terminate()
except OSError:
pass
else:
with self.suspend():
webbrowser.open_new_tab(url)