Bug #1685

bred broken

Added by Jean-Philippe Dutreve over 2 years ago. Updated over 2 years ago.

Status:Resolved Start:2014-12-07
Priority:Normal Due date:
Assigned to:Romain Bignon % Done:

0%

Category:Modules Spent time: -
Target version:1.1
Module:bred Branch:

Description

Bred bank website seems to have been changed, so the bred module is broken.

Associated revisions

Revision 91c5bc36619d69e47ec2566421c6dc94ffe5dde2
Added by Romain Bignon over 2 years ago

fix compatibility with Decimal of python2.6 (closes #1685)

History

Updated by Romain Bignon over 2 years ago

  • Status changed from New to Resolved
  • Assigned to set to Romain Bignon

Updated by Jean-Philippe Dutreve over 2 years ago

There is a bug :

File "/root/.local/share/weboob/modules/1.1/bred/bred/browser.py", line 73, in get_accounts_list
a.balance = Decimal(poste['montantTitres']['valeur'])
File "/usr/lib64/python2.6/decimal.py", line 649, in new
"First convert the float to a string")
TypeError: Cannot convert float to Decimal. First convert the float to a string

A fixe is to add str():

line 73:
a.balance = Decimal(str(poste['montantTitres']['valeur']))

line 81:
a.balance = Decimal(str(poste['solde']['valeur']))

Also available in: Atom PDF