Fixed os.terminate() error when the process has already finished.
This commit is contained in:
1 parent
2fa5adc7ce
commit
6f0773df31
1 file changed
+4
-1
+4
-1
@@ -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