Skip to content

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
    • Help
    • Support
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
weboob
weboob
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
    • Cycle Analytics
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Charts
  • Issues 180
    • Issues 180
    • List
    • Boards
    • Labels
    • Milestones
  • Merge Requests 53
    • Merge Requests 53
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
    • Charts
  • Wiki
    • Wiki
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • weboob
  • weboobweboob
  • Merge Requests
  • !479

Open
Opened Jul 17, 2020 by Jordan Augé@jordan.auge1
  • Report abuse
Report abuse

[module/bp] fix: Unavailable RIB service prevents listing account balance

  • Overview 1
  • Commits 1
  • Pipelines 1
  • Changes 1

Example of unavailable service:

weboob-rib-indispo

Result in boobank

boobank> list
                 Account                     Balance    Coming
------------------------------------------+----------+----------
2020-07-18 00:12:31,395:DEBUG:bcall:2.0:bcall.py:92:backend_process <Backend 'bp'>: Calling function iter_resources
[...]
2020-07-18 00:12:32,700:DEBUG:backend.bp.browser:2.0:browsers.py:720:internal_callback Handle https://voscomptesenligne.labanquepostale.fr/voscomptes/canalXHTML/comptesCommun/imprimerRIB/init-imprimer_rib.ea?numeroCompte=[REDACTED] with AccountRIB
> [REDACTED]/.local/share/weboob/modules/2.0/bp/pages/accountlist.py(422)get_iban()
-> m = re.search(self.iban_regexp, extract_text(self.data))
(Pdb) p extract_text(self.data)
None
(Pdb) c
2020-07-18 00:12:41,867:WARNING:backend.bp.browser.accountlist.item_account:2.0:elements.py:384:handle_attr Attribute iban (in [REDACTED]/.local/share/weboob/modules/2.0/bp/pages/accountlist.py:217) raises TypeError('expected string or bytes-like object')
2020-07-18 00:12:41,868:DEBUG:bcall:2.0:bcall.py:98:backend_process <Backend 'bp'>: Called function iter_resources raised an error: TypeError('expected string or bytes-like object')
Bug(bp): expected string or bytes-like object

Check out, review, and merge locally

Step 1. Fetch and check out the branch for this merge request

git fetch "https://git.weboob.org/jordan.auge/weboob.git" "fix-bp-rib-unavailable"
git checkout -b "jordan.auge/weboob-fix-bp-rib-unavailable" FETCH_HEAD

Step 2. Review the changes locally

Step 3. Merge the branch and fix any conflicts that come up

git fetch origin
git checkout "origin/master"
git merge --no-ff "jordan.auge/weboob-fix-bp-rib-unavailable"

Step 4. Push the result of the merge to GitLab

git push origin "master"

Note that pushing to GitLab requires write access to this repository.

Tip: You can also checkout merge requests locally by following these guidelines.

Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
0
Labels
None
Assign labels
  • View project labels
Reference: weboob/weboob!479