Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deleted bank accounts returned via INDEX operations #56

Open
mjallday opened this issue Jul 15, 2013 · 0 comments
Open

Deleted bank accounts returned via INDEX operations #56

mjallday opened this issue Jul 15, 2013 · 0 comments
Labels

Comments

@mjallday
Copy link
Contributor

In [3]: balanced.configure('441ba950ea6411e2950a026ba7cac9da')

In [4]: balanced.BankAccount.query.all()
---------------------------------------------------------------------------
KeyError                                  Traceback (most recent call last)
<ipython-input-4-93cf3ced395f> in <module>()
----> 1 balanced.BankAccount.query.all()

/Users/marshall/.virtualenvs/tmp/lib/python2.7/site-packages/balanced/resources.pyc in all(self)
    162 
    163     def all(self):
--> 164         return list(self)
    165 
    166     def one(self):

/Users/marshall/.virtualenvs/tmp/lib/python2.7/site-packages/balanced/resources.pyc in __iter__(self)
    133     def __iter__(self):
    134         if self.next_page is not None:
--> 135             for resource in itertools.chain(self.items, self.next_page):
    136                 yield resource
    137         else:

/Users/marshall/.virtualenvs/tmp/lib/python2.7/site-packages/balanced/resources.pyc in items(self)
    190     def items(self):
    191         for item in self._lazy_loaded['items']:
--> 192             _resource = _RESOURCES.from_uri(item['uri'])
    193             yield _resource(**item)
    194 

KeyError: 'uri'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant