mirror of
https://github.com/powerline/powerline.git
synced 2025-04-08 19:25:04 +02:00
parent
fcc009a6f5
commit
b47c2fae15
@ -603,7 +603,7 @@ def user(pl, segment_info=None):
|
||||
'''
|
||||
global username
|
||||
if username is False:
|
||||
username = _get_user(pl)
|
||||
username = _get_user(segment_info)
|
||||
if username is None:
|
||||
pl.warn('Failed to get username')
|
||||
return None
|
||||
|
Loading…
x
Reference in New Issue
Block a user