X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=source%2Futils.py;h=4f96fd268cdc143e203d1f47c19adf6b79855cc1;hb=d06107fde09228f87415ab62c6afd417efb36276;hp=cb1bc4d59da03de5d20212dba5666782ed6e1893;hpb=2a12e1ba8dbc7b1856e83008a0e254fa74ba9bd1;p=bootmanager.git 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()