From 3ff1e2e6cd2f6203f1c78c5a0c927ea52b4ac4bf Mon Sep 17 00:00:00 2001 From: Anton Hvornum Date: Wed, 6 Jun 2018 17:15:04 +0200 Subject: Logical miss on if statement. --- archinstall.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'archinstall.py') diff --git a/archinstall.py b/archinstall.py index 42d3ff65..0f3182e9 100644 --- a/archinstall.py +++ b/archinstall.py @@ -257,10 +257,11 @@ if __name__ == '__main__': for key, val in instructions['args'].items(): args[key] = val - ## TODO: Reuseable code, there's to many get_instructions, merge_dictgs and args updating going on. - ## Update arguments if we found any - for key, val in instructions['args'].items(): - args[key] = val + if 'args' in instructions: + ## TODO: Reuseable code, there's to many get_instructions, merge_dictgs and args updating going on. + ## Update arguments if we found any + for key, val in instructions['args'].items(): + args[key] = val if args['password'] == '': args['password'] = input('Enter a disk (and root) password: ') print(args) -- cgit v1.2.3-70-g09d2