Fix set translation as view.arch could be None

This commit is contained in:
Cédric Krier committed 2013-03-21 11:34:00 +01:00
1 parent a95ae0dad9
commit e701223d75
1 file changed
+1 -1
+1 -1
View File
@@ -842,7 +842,7 @@ class TranslationSet(Wizard):
for trans in cursor.dictfetchall():
trans_views[trans['src']] = trans
xml = view.arch.strip()
xml = (view.arch or '').strip()
if not xml:
continue
tree = etree.fromstring(xml)