fix getting an account from list
This commit is contained in:
parent
8fdbf330dd
commit
79c8b3de1e
1 changed files with 1 additions and 1 deletions
|
|
@ -63,7 +63,7 @@ class ApivieBrowser(BaseBrowser):
|
|||
|
||||
def get_account(self, _id):
|
||||
try:
|
||||
return next(a for a in self.get_accounts_list() if a.id == id)
|
||||
return next(a for a in self.iter_accounts() if a.id == _id)
|
||||
except StopIteration:
|
||||
return None
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue