Fix set translation as view.arch could be None
This commit is contained in:
1 parent
a95ae0dad9
commit
e701223d75
1 file changed
+1
-1
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user