By using try..finally here, we ensure the cursor cleanup is performed even if the generator is not exhausted before being garbage collected.
Fixes https://pagure.io/koji/issue/2435
:thumbsup:
Metadata Update from @tkopecek: - Pull-request tagged with: testing-ready
Commit 1527e40f fixes this pull-request
Pull-Request has been merged by tkopecek
Metadata Update from @mfilip: - Pull-request tagged with: testing-done
By using try..finally here, we ensure the cursor cleanup is performed
even if the generator is not exhausted before being garbage collected.
Fixes https://pagure.io/koji/issue/2435