71a891f ensure that cursors are closed in QueryProcessor.iterate()

Authored and Committed by mikem 3 years ago
    ensure that cursors are closed in QueryProcessor.iterate()
    
    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
    
        
file modified
+23 -21