Use strings instead of integers internally for account IDs
This commit is contained in:
parent
7d0105c167
commit
024f217c8b
7 changed files with 24 additions and 33 deletions
|
|
@ -46,16 +46,13 @@ class LCLBackend(BaseBackend, ICapBank):
|
|||
yield account
|
||||
|
||||
def get_account(self, _id):
|
||||
try:
|
||||
_id = long(_id)
|
||||
except ValueError:
|
||||
if not _id.isdigit():
|
||||
raise AccountNotFound()
|
||||
account = self.browser.get_account(_id)
|
||||
if account:
|
||||
return account
|
||||
else:
|
||||
account = self.browser.get_account(_id)
|
||||
if account:
|
||||
return account
|
||||
else:
|
||||
raise AccountNotFound()
|
||||
raise AccountNotFound()
|
||||
|
||||
def iter_operations(self, account):
|
||||
""" TODO Not supported yet """
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue