From 3d327be79089ed8635203c523afc964b54f69c93 Mon Sep 17 00:00:00 2001 From: Daniel Girtler Date: Mon, 18 Nov 2024 09:17:31 +1100 Subject: [PATCH] Fix 2860 --- archinstall/default_profiles/applications/pipewire.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/archinstall/default_profiles/applications/pipewire.py b/archinstall/default_profiles/applications/pipewire.py index 0e53c72395..d0a1bcc4be 100644 --- a/archinstall/default_profiles/applications/pipewire.py +++ b/archinstall/default_profiles/applications/pipewire.py @@ -1,4 +1,4 @@ -from typing import Union, Any, TYPE_CHECKING +from typing import Any, TYPE_CHECKING import archinstall @@ -27,7 +27,11 @@ def packages(self) -> list[str]: ] def _enable_pipewire_for_all(self, install_session: 'Installer') -> None: - users: Union[User, list[User]] = archinstall.arguments.get('!users', []) + users: User | list[User] | None = archinstall.arguments.get('!users', None) + + if users is None: + return + if not isinstance(users, list): users = [users]