From 3064b752e06cc01a13d8de2d39b10967b20cb1ed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Fri, 26 Dec 2008 15:36:17 +0100 Subject: [PATCH] Fix unicode conversion of source in _get_sources if it is None --- trytond/ir/translation.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/trytond/ir/translation.py b/trytond/ir/translation.py index 36c24a8024..98b3785fa0 100644 --- a/trytond/ir/translation.py +++ b/trytond/ir/translation.py @@ -273,7 +273,8 @@ class Translation(OSV, Cacheable): name = unicode(name) ttype = unicode(ttype) lang = unicode(lang) - source = unicode(source) + if source is not None: + source = unicode(source) trans = self.get(cursor, (lang, ttype, name, source)) if trans is not None: res[(name, ttype, lang, source)] = trans