Skip to content

Commit

Permalink
Fix 2860
Browse files Browse the repository at this point in the history
  • Loading branch information
svartkanin committed Nov 17, 2024
1 parent 6383b5e commit 3d327be
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions archinstall/default_profiles/applications/pipewire.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from typing import Union, Any, TYPE_CHECKING
from typing import Any, TYPE_CHECKING

import archinstall

Expand Down Expand Up @@ -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]

Expand Down

0 comments on commit 3d327be

Please sign in to comment.