Skip to content
This repository has been archived by the owner on Sep 5, 2019. It is now read-only.

Fix the iterator when tickets are being closed during iteration #19

Closed
wants to merge 1 commit into from

Conversation

apurvis
Copy link

@apurvis apurvis commented Aug 15, 2018

If tickets are closed while iterating over them with a Collection - either via the API or via the GUI - and the total_records in the response changes, you will always hit an unexplained IndexError at the end of you iteration.

This PR should fix that in most cases - you can still iterate, but it will stop without raising IndexError.

@apurvis
Copy link
Author

apurvis commented Aug 20, 2018

closing in favor of #21

@apurvis apurvis closed this Aug 20, 2018
@apurvis apurvis deleted the fix_collection_iterator branch August 20, 2018 20:41
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant