mirror of
https://github.com/sshuttle/sshuttle.git
synced 2025-07-03 08:11:17 +02:00
Don't use try/except/finally so that python 2.4 works.
Use try/(try/except)/finally instead. There was only once case of this. Thanks to Wayne Scott and nisc for pointing this out.
This commit is contained in:
@ -78,6 +78,7 @@ def start_hostwatch(seed_hosts):
|
|||||||
if not pid:
|
if not pid:
|
||||||
# child
|
# child
|
||||||
rv = 99
|
rv = 99
|
||||||
|
try:
|
||||||
try:
|
try:
|
||||||
s2.close()
|
s2.close()
|
||||||
os.dup2(s1.fileno(), 1)
|
os.dup2(s1.fileno(), 1)
|
||||||
|
Reference in New Issue
Block a user