From abd15f9ff5a53face8b5d8efc29118b7362735b2 Mon Sep 17 00:00:00 2001 From: Anton Hvornum Date: Sun, 14 Mar 2021 14:41:13 +0100 Subject: Added error handling for install_profile() if string vs Profile() is given as an argument. --- archinstall/lib/installer.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'archinstall/lib/installer.py') diff --git a/archinstall/lib/installer.py b/archinstall/lib/installer.py index b45ad1dc..3daf96f4 100644 --- a/archinstall/lib/installer.py +++ b/archinstall/lib/installer.py @@ -363,7 +363,8 @@ class Installer(): return self.pacstrap(*packages) def install_profile(self, profile): - profile = Profile(self, profile) + if type(profile) == str: + profile = Profile(self, profile) self.log(f'Installing network profile {profile}', level=LOG_LEVELS.Info) return profile.install() -- cgit v1.2.3-54-g00ecf