mirror of
https://github.com/powerline/powerline.git
synced 2025-07-25 14:54:54 +02:00
parent
137ae5f990
commit
ca723aafaa
@ -183,6 +183,8 @@ class ExternalIpSegment(ThreadedSegment):
|
|||||||
self.ip = ip
|
self.ip = ip
|
||||||
|
|
||||||
def render(self):
|
def render(self):
|
||||||
|
if not hasattr(self, 'ip'):
|
||||||
|
return None
|
||||||
return [{'contents': self.ip, 'divider_highlight_group': 'background:divider'}]
|
return [{'contents': self.ip, 'divider_highlight_group': 'background:divider'}]
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user