diff --git a/modules/bnporc/pp/browser.py b/modules/bnporc/pp/browser.py index 078d71e33b1277450ea0c545d7651f36299637a9..10376bf7d16b03b82a31ce14a1a95c1eba74864e 100644 --- a/modules/bnporc/pp/browser.py +++ b/modules/bnporc/pp/browser.py @@ -186,7 +186,7 @@ def change_pass(self, oldpass, newpass): @need_login def get_profile(self): - self.profile.go(json={}, method='POST') + self.profile.go(json={}) profile = self.page.get_profile() if profile: return profile @@ -213,7 +213,7 @@ def iter_accounts(self): pass accounts = list(self.accounts.go().iter_accounts(ibans=ibans)) - self.market_syn.go(json={}, method='POST') # do a post on the given URL + self.market_syn.go(json={}) market_accounts = self.page.get_list() # get the list of 'Comptes Titres' checked_accounts = set() for account in accounts: @@ -286,7 +286,7 @@ def iter_history(self, account, coming=False): if coming: return [] try: - self.market_list.go(json={}, method='POST') + self.market_list.go(json={}) except ServerError: self.logger.warning("An Internal Server Error occurred") return [] @@ -372,7 +372,7 @@ def iter_investment(self, account): elif account.type in (account.TYPE_MARKET, account.TYPE_PEA): try: - self.market_list.go(json={}, method='POST') + self.market_list.go(json={}) except ServerError: self.logger.warning("An Internal Server Error occurred") return [] @@ -399,7 +399,7 @@ def iter_market_orders(self, account): return [] try: - self.market_list.go(json={}, method='POST') + self.market_list.go(json={}) except ServerError: self.logger.warning('An Internal Server Error occurred') return []