Skip to content

Deleted bank accounts returned via INDEX operations #56

Open
@mjallday

Description

@mjallday
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'

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions