From c5f7358aeabfd2ee0b546cba9dcc4063533fa99e Mon Sep 17 00:00:00 2001 From: "Pieter J. Kersten" Date: Thu, 10 Feb 2011 21:12:04 +0100 Subject: [PATCH] [FIX] account_banking_nl_clieop: generators are not subscriptable --- account_banking_nl_clieop/wizard/clieop.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/account_banking_nl_clieop/wizard/clieop.py b/account_banking_nl_clieop/wizard/clieop.py index 50769d6a2..9020a7946 100644 --- a/account_banking_nl_clieop/wizard/clieop.py +++ b/account_banking_nl_clieop/wizard/clieop.py @@ -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