handle OSErrors possibly raised when kill()ing subprocess
This commit is contained in:
parent
a23c74a70a
commit
20e2498f39
3
jsvn
3
jsvn
@ -539,7 +539,10 @@ def find_branched_revision(svn, branch_url, branch_path, base_path):
|
||||
new_path, old_path, rev = m.group(1, 2, 3)
|
||||
if new_path == search_path:
|
||||
if old_path == base_path:
|
||||
try:
|
||||
p.kill()
|
||||
except OSError:
|
||||
pass
|
||||
return (int(rev), old_path)
|
||||
search_path = old_path
|
||||
return (-1, '')
|
||||
|
Loading…
x
Reference in New Issue
Block a user