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:
Avery Pennarun 2010-05-10 13:58:52 -04:00
parent 77cf37e0fa
commit 2d77403a0b

View File

@ -78,6 +78,7 @@ def start_hostwatch(seed_hosts):
if not pid:
# child
rv = 99
try:
try:
s2.close()
os.dup2(s1.fileno(), 1)