Fix #815971 (Garbage in Job Detail List)

This commit is contained in:
Kovid Goyal 2011-07-25 09:52:08 -06:00
parent 68632c1853
commit 6867bde932

View File

@ -141,7 +141,8 @@ class BaseJob(object):
def log_file(self): def log_file(self):
if self.log_path: if self.log_path:
return open(self.log_path, 'rb') return open(self.log_path, 'rb')
return cStringIO.StringIO(_('No details available.')) return cStringIO.StringIO(_('No details available.').encode('utf-8',
'replace'))
@property @property
def details(self): def details(self):