[FIX] account_banking_nl_clieop: generators are not subscriptable

This commit is contained in:
Pieter J. Kersten
2011-02-10 21:12:04 +01:00
parent e70e7a70ea
commit c5f7358aea

View File

@@ -268,9 +268,12 @@ class Transaction(object):
# Allow long message lines to redistribute over multiple message
# records
for msg in chunk(''.join(messages),
self.description.length('description')
)[:4]:
self.description.description = msg
self.description.length('description')
):
try:
self.description.description = msg
except ValueError:
break
self.name.name = name