Skip to content
Snippets Groups Projects
Commit 407db710 authored by Jake Taylor's avatar Jake Taylor
Browse files

fix db commit

parent 61d1d62f
No related branches found
No related tags found
1 merge request!9Remove truncate and add on conflict clause instead
......@@ -732,10 +732,9 @@ def set_authorizer_nodes(conn, to_add, to_delete):
except Exception as e:
log.error(f"Failed to insert into authorizer db: {cur.query}")
raise e
finally:
cur.close()
conn.commit()
cur.close()
return to_revoke
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment