From 201b5ed2c0184d8309ec34bbf2c59278c04be9a1 Mon Sep 17 00:00:00 2001 From: Anton Hvornum Date: Sat, 12 Feb 2022 14:59:41 +0100 Subject: [PATCH] Added debug information --- archinstall/lib/general.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/archinstall/lib/general.py b/archinstall/lib/general.py index daf44e4a..c3184f1b 100644 --- a/archinstall/lib/general.py +++ b/archinstall/lib/general.py @@ -264,13 +264,13 @@ class SysCommandWorker: if len(args) >= 2 and args[1]: log(args[1], level=logging.DEBUG, fg='red') - if self.exit_code != 0: + if self.exit_code is not None and self.exit_code != 0: raise SysCallError(f"{self.cmd} exited with abnormal exit code [{self.exit_code}]: {self._trace_log[-500:]}", self.exit_code) def is_alive(self) -> bool: self.poll() - if self.started and self.ended is None: + if self.started and self.exit_code is not None: return True return False