break into two lines to separate logger problems from morituri

This commit is contained in:
Velo Superman
2013-03-01 19:32:15 +01:00
parent fdab6f1e3f
commit d7848cd34c

View File

@@ -698,7 +698,8 @@ class Program(log.Loggable):
def writeLog(self, discName, logger):
logPath = '%s.log' % discName
handle = open(logPath, 'w')
handle.write(logger.log(self.result).encode('utf-8'))
log = logger.log(self.result)
handle.write(log.encode('utf-8'))
handle.close()
self.logPath = logPath