urschrei/pyzotero — pull request #38 by mpaolino (2014-11-27 14:35:35+00:00)
Title: Adds check to iterfollow to avoid unwanted exception

This is needed to avoid an AttributeError if self.links was not previously populated.

To reproduce:

1) Make a request that returns a multi object with a limit higher than the number of currently stored items in Zotero.The response will not include a start or last link in the header and the self.links attribute will not get populated.
2) Try to use iterfollow()

h2. Working example:

GET https://api.zotero.org/users/475425/collections?v=3&limit=1

Will get you a header:

Link	; rel="next", ; rel="last", ; rel="alternate"