aboutsummaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/plugins/ipaddress2
1 files changed, 1 insertions, 1 deletions
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)