mirror of
https://github.com/keanuplayz/dotfiles.git
synced 2024-08-15 02:33:12 +00:00
[scripts/welcome] fix crash when one of the users' terminals is None
This commit is contained in:
parent
4bd272f165
commit
114ab4b3fe
1 changed files with 3 additions and 1 deletions
|
@ -92,7 +92,9 @@ def _get_users():
|
||||||
terminals = users[name]
|
terminals = users[name]
|
||||||
|
|
||||||
colored_name = bright_colored(name, Fore.BLUE)
|
colored_name = bright_colored(name, Fore.BLUE)
|
||||||
colored_terminals = [colored(term, Style.DIM, Fore.WHITE) for term in terminals]
|
colored_terminals = [
|
||||||
|
colored(str(term), Style.DIM, Fore.WHITE) for term in terminals
|
||||||
|
]
|
||||||
|
|
||||||
terminals_str = ", ".join(colored_terminals)
|
terminals_str = ", ".join(colored_terminals)
|
||||||
if len(colored_terminals) > 1:
|
if len(colored_terminals) > 1:
|
||||||
|
|
Loading…
Reference in a new issue