[FIX] po file parser: database creation crashes if res_id is an empty string

bzr revid: olt@tinyerp.com-20101126082048-ndc55bsf4vo3cu2c
This commit is contained in:
olt@tinyerp.com 2010-11-26 09:20:48 +01:00
parent 352bb205aa
commit cf152730b8
1 changed files with 2 additions and 0 deletions

View File

@ -253,6 +253,8 @@ class TinyPoFile(object):
if self.tnrs:
type, name, res_id, source, trad = self.tnrs.pop(0)
if not res_id:
res_id = '0'
else:
tmp_tnrs = []
line = None