[scripts/welcome] fix crash when one of the users' terminals is None
This commit is contained in:
parent
4bd272f165
commit
114ab4b3fe
|
@ -92,7 +92,9 @@ def _get_users():
|
|||
terminals = users[name]
|
||||
|
||||
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)
|
||||
if len(colored_terminals) > 1:
|
||||
|
|
Loading…
Reference in New Issue