Fixed os.terminate() error when the process has already finished.
This commit is contained in:
@@ -313,7 +313,10 @@ class Terminal(object):
|
|||||||
# Can't check the loader exception because the oauth module
|
# Can't check the loader exception because the oauth module
|
||||||
# supersedes this loader and we need to always kill the
|
# supersedes this loader and we need to always kill the
|
||||||
# process if escape is pressed
|
# process if escape is pressed
|
||||||
p.terminate()
|
try:
|
||||||
|
p.terminate()
|
||||||
|
except OSError:
|
||||||
|
pass
|
||||||
else:
|
else:
|
||||||
with self.suspend():
|
with self.suspend():
|
||||||
webbrowser.open_new_tab(url)
|
webbrowser.open_new_tab(url)
|
||||||
|
|||||||
Reference in New Issue
Block a user