From 123ecac86250f7f3dd13a3f94758ed997a48cace Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Mon, 8 Dec 2014 03:52:44 +0100 Subject: proper multi-home support in ipaddress MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- examples/plugins/ipaddress | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'examples/plugins') diff --git a/examples/plugins/ipaddress b/examples/plugins/ipaddress index f29fdb4..96572ee 100644 --- a/examples/plugins/ipaddress +++ b/examples/plugins/ipaddress @@ -22,7 +22,7 @@ def start(): def redraw(): addr = IPAddress('lo') - text = 'Addr: %s' % ', '.join(addr.public().keys()) + text = 'Addr: %s' % ', '.join(addr for addr in addr.public().keys() if addr is not None) bar.clear() bar.draw_coloured_text(0, 10, 0, 2, text) -- cgit v1.2.3-70-g09d2