From 9d481e6e3ce112a9fcf84283f541e8daeee4674e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Tue, 18 Oct 2011 09:42:45 +0200 Subject: [PATCH] Ensure msgid and msgstr are always strings issue2203 review154005 --- trytond/ir/translation.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/trytond/ir/translation.py b/trytond/ir/translation.py index 63d28364c6..0a4bce0328 100644 --- a/trytond/ir/translation.py +++ b/trytond/ir/translation.py @@ -569,8 +569,8 @@ class Translation(ModelSQL, ModelView, Cacheable): else: continue trans_ctxt += ':%s' % res_id - entry = polib.POEntry(msgid=translation.src, - msgstr=translation.value, msgctxt=trans_ctxt, flags=flags) + entry = polib.POEntry(msgid=(translation.src or ''), + msgstr=(translation.value or ''), msgctxt=trans_ctxt, flags=flags) pofile.append(entry) pofile.sort()