mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
git-update: Close cursor before closing database
When using SQLite as backend, we need to close the cursor before closing the database to avoid the following error: sqlite3.OperationalError: unable to close due to unfinalized statements or unfinished backups Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org>
This commit is contained in:
parent
c761631181
commit
29625e0744
2 changed files with 2 additions and 1 deletions
|
@ -402,4 +402,5 @@ repo.create_reference('refs/namespaces/' + pkgbase + '/HEAD', sha1_new, True)
|
|||
update_notify(conn, user, pkgbase_id)
|
||||
|
||||
# Close the database.
|
||||
cur.close()
|
||||
conn.close()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue