Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/archinstall/lib/output.py
diff options
context:
space:
mode:
Diffstat (limited to 'archinstall/lib/output.py')
-rw-r--r--archinstall/lib/output.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/archinstall/lib/output.py b/archinstall/lib/output.py
index 8331a04c..3c1b12e2 100644
--- a/archinstall/lib/output.py
+++ b/archinstall/lib/output.py
@@ -89,7 +89,7 @@ def log(*args, **kwargs):
if type(kwargs['file']) is str:
with open(kwargs['file'], 'a') as log_file:
log_file.write(f"{orig_string}\n")
- else:
+ elif kwargs['file']:
kwargs['file'].write(f"{orig_string}\n")
# If we assigned a level, try to log it to systemd's journald.