From d1fcd6c153159e6deda719b4f819bf2ba982098b Mon Sep 17 00:00:00 2001 From: Laurent Bachelier Date: Tue, 5 Feb 2013 16:04:26 +0100 Subject: [PATCH] Fix repr() on transactions with unicode labels repr only wants str. --- weboob/capabilities/bank.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/weboob/capabilities/bank.py b/weboob/capabilities/bank.py index 29cd9a25..1dce091b 100644 --- a/weboob/capabilities/bank.py +++ b/weboob/capabilities/bank.py @@ -140,8 +140,9 @@ class Transaction(CapBaseObject): amount = DecimalField('Amount of transaction') def __repr__(self): + label = self.label.encode('utf-8') if self.label else self.label return "" % (self.date, - self.label, self.amount) + label, self.amount) class Transfer(CapBaseObject): """