mirror of
https://gerrit.googlesource.com/git-repo
synced 2024-12-21 07:16:21 +00:00
Fix invalid use of try-catch
Its try-except in Python. Signed-off-by: Shawn O. Pearce <sop@google.com>
This commit is contained in:
parent
26120ca18d
commit
fb5c8fd948
@ -388,7 +388,7 @@ def close_ssh():
|
|||||||
try:
|
try:
|
||||||
os.kill(p.pid, SIGTERM)
|
os.kill(p.pid, SIGTERM)
|
||||||
p.wait()
|
p.wait()
|
||||||
catch OSError:
|
except OSError:
|
||||||
pass
|
pass
|
||||||
_ssh_cache.clear()
|
_ssh_cache.clear()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user