From 98a3c37bbf75d177042bf59d099484761a0c9f6f Mon Sep 17 00:00:00 2001 From: Daira Hopwood Date: Sun, 7 Jul 2013 17:43:18 +0100 Subject: [PATCH] iputil.py: fix test failures due to calling log.err on a harmless error. Signed-off-by: Daira Hopwood --- src/allmydata/util/iputil.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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 -- 2.45.2