Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/archinstall
diff options
context:
space:
mode:
authorAnton Hvornum <anton.feeds+github@gmail.com>2020-11-29 21:30:44 +0000
committerAnton Hvornum <anton.feeds+github@gmail.com>2020-11-29 21:30:44 +0000
commit07e6e91f3cd49778168f693bcb52bc7b2a165c09 (patch)
treec32f9c0dca9f41757b5100ccb88f1d2e60c0cbc0 /archinstall
parent82e0d2073822cf51745abb6e2f4469094b1f2696 (diff)
Issue in archinstall.output.log() when the log file output is omitted. Now properly checks if a logfile is given, otherwise it ignores it.
Diffstat (limited to 'archinstall')
-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.