Tweaked the _guided storage. One variable was a loaded module, which is hard to convert to json in a meaningful way.

This commit is contained in:
Anton Hvornum 2020-10-18 20:32:26 +02:00
parent 1bd6a19dc4
commit 58201d7234
1 changed files with 1 additions and 0 deletions

View File

@ -115,6 +115,7 @@ while 1:
archinstall.storage['_guided']['profile'] = profile
if type(profile) != str: # Got a imported profile
archinstall.storage['_guided']['profile'] = profile[0] # The second return is a module, and not a handle/object.
if not profile[1]._prep_function():
archinstall.log(' * Profile\'s preperation requirements was not fulfilled.', bg='black', fg='red')
continue