From 16d9bd5934609ce3ddf9474cad05f6a338a0d6c4 Mon Sep 17 00:00:00 2001 From: Anton Hvornum Date: Wed, 4 Nov 2020 23:55:26 +0000 Subject: Logic issue minor fix. --- archinstall/lib/output.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'archinstall') diff --git a/archinstall/lib/output.py b/archinstall/lib/output.py index 8896c2a1..7118adca 100644 --- a/archinstall/lib/output.py +++ b/archinstall/lib/output.py @@ -82,7 +82,7 @@ def log(*args, **kwargs): # Log to a file output unless specifically told to suppress this feature. # (level has no effect on the log file, everything will be written there) - if 'file' in kwargs and not 'suppress' in kwargs and kwargs['suppress']: + if 'file' in kwargs and ('suppress' not in kwargs or kwargs['suppress'] == False): if type(kwargs['file']) is str: with open(kwargs['file'], 'a') as log_file: log_file.write(f"{orig_string}\n") -- cgit v1.2.3-54-g00ecf