Skip external_ip segment if self.ip is not defined

Ref #335
This commit is contained in:
ZyX 2013-03-18 23:58:06 +04:00
parent 137ae5f990
commit ca723aafaa
1 changed files with 2 additions and 0 deletions

View File

@ -183,6 +183,8 @@ class ExternalIpSegment(ThreadedSegment):
self.ip = ip
def render(self):
if not hasattr(self, 'ip'):
return None
return [{'contents': self.ip, 'divider_highlight_group': 'background:divider'}]