Fix indentation - move all cursor operations inside with block
- Previous fix had wrong indentation, code was still outside with block - Now all cursor.execute() and conn.commit() are properly inside context manager - This will actually fix the 'Cursor is not connected' error
Showing
Please
register
or
sign in
to comment