diff --git a/modules/cragr/api/browser.py b/modules/cragr/api/browser.py index 36989b4795abdd4fbe0f2c8da1f09b26b226add2..77b8c90c0325b30017d4410356570ecc12562ca7 100644 --- a/modules/cragr/api/browser.py +++ b/modules/cragr/api/browser.py @@ -208,11 +208,11 @@ def get_accounts_list(self): for contract in range(total_spaces): # This request often returns a 500 error so we retry several times. try: - self.contracts_page.go(id_contract=contract) + self.go_to_account_space(contract) except ServerError: self.logger.warning('Server returned error 500 when trying to access space %s, we try again' % contract) try: - self.contracts_page.go(id_contract=contract) + self.go_to_account_space(contract) except ServerError: self.logger.warning('Server returned error 500 twice when trying to access space %s, this space will be skipped' % contract) continue