From d06107fde09228f87415ab62c6afd417efb36276 Mon Sep 17 00:00:00 2001 From: =?utf8?q?S=2E=C3=87a=C4=9Flar=20Onur?= Date: Fri, 10 Dec 2010 13:11:42 -0500 Subject: [PATCH] stdoutdata can be None object --- source/utils.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/utils.py b/source/utils.py index cb1bc4d..4f96fd2 100644 --- a/source/utils.py +++ b/source/utils.py @@ -148,7 +148,8 @@ def sysexec( cmd, log= None, fsck = False ): raise BootManagerException, "Interrupted by user" if log is not None: - log.write(stdoutdata) + if stdoutdata is not None: + log.write(stdoutdata) returncode = prog.wait() -- 2.43.0