Opening a new file frees the cursors, add check if the cursor is still valid. This leaks a Python reference, so a better solution is needed.
Opening a new file frees the cursors, add check if the cursor is still valid. This leaks a Python reference, so a better solution is needed.