backoffice: don't fail on None value in ods export (#7057)

This commit is contained in:
Frédéric Péters 2015-04-27 19:22:35 +02:00
parent 8436474d30
commit af4b73b3ad
1 changed files with 2 additions and 0 deletions

View File

@ -94,6 +94,8 @@ class WorkSheet(object):
class WorkCell(object):
def __init__(self, worksheet, value, hint=None):
if value is None:
value = ''
if type(value) is not unicode:
value = unicode(value, 'utf-8')
self.value = value