[FIX] Ignore empty statements in CAMT.053 parser

This commit is contained in:
Stefan Rijnhart
2014-03-26 14:20:33 +01:00
parent d163f53c48
commit cf435ef739

View File

@@ -274,5 +274,7 @@ CAMT Format parser
self.assert_tag(root[0][0], 'GrpHdr')
statements = []
for node in root[0][1:]:
statements.append(self.parse_Stmt(cr, node))
statement = self.parse_Stmt(cr, node)
if len(statement.transactions):
statements.append(statement)
return statements