From: Daira Hopwood Date: Sun, 7 Jul 2013 16:43:18 +0000 (+0100) Subject: iputil.py: fix test failures due to calling log.err on a harmless error. X-Git-Url: https://git.rkrishnan.org/module-simplejson.tests.html?a=commitdiff_plain;h=98a3c37bbf75d177042bf59d099484761a0c9f6f;p=tahoe-lafs%2Ftahoe-lafs.git iputil.py: fix test failures due to calling log.err on a harmless error. Signed-off-by: Daira Hopwood --- diff --git a/src/allmydata/util/iputil.py b/src/allmydata/util/iputil.py index 2f7db051..377012c4 100644 --- a/src/allmydata/util/iputil.py +++ b/src/allmydata/util/iputil.py @@ -133,8 +133,7 @@ def get_local_ip_for(target): except socket.error: # no route to that host localip = None - d = port.stopListening() - d.addErrback(log.err) + port.stopListening() return localip