Skip to content

Commit

Permalink
Allow us to update our cached account_ids if import fails
Browse files Browse the repository at this point in the history
  • Loading branch information
pouneh committed Nov 21, 2022
1 parent f051531 commit c0316fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion integ-tests/basic.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ async def get_account(i):
if 'error' not in account.keys():
return Account(account['result']['account'])
else:
if len(account_ids) == 0 :
if len(account_ids) <= i:
accounts_response = Response(await fs.get_accounts())
account_ids = accounts_response.account_ids
return accounts_response.accounts[account_ids[i]]
Expand Down

0 comments on commit c0316fd

Please sign in to comment.