git://git.onelab.eu
/
bootmanager.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
2a12e1b
)
stdoutdata can be None object
author
S.Çağlar Onur
<caglar@cs.princeton.edu>
Fri, 10 Dec 2010 18:11:42 +0000
(13:11 -0500)
committer
S.Çağlar Onur
<caglar@cs.princeton.edu>
Fri, 10 Dec 2010 18:11:42 +0000
(13:11 -0500)
source/utils.py
patch
|
blob
|
history
diff --git
a/source/utils.py
b/source/utils.py
index
cb1bc4d
..
4f96fd2
100644
(file)
--- 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()