From c36db5a51a628389411aa6b282d6adfbdd2a6181 Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Fri, 12 Oct 2012 14:34:49 +0200 Subject: [PATCH] fix typo --- db_add.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/db_add.py b/db_add.py index 0b04c23..0a3033c 100755 --- a/db_add.py +++ b/db_add.py @@ -61,7 +61,7 @@ def db_add_origin(con, origin): try: cur.execute("INSERT INTO deb_package_origin(origin) VALUES('%s') RETURNING id" % (origin)) con.commit() - except psycopg2.DatabaseError as e: + except psycopg2.DatabaseError as e: # record already exist cur.execute("ROLLBACK TO a") # have to rollback after failed command cur.execute("SELECT id FROM deb_package_origin WHERE origin='%s'" % (origin)) -- 2.39.5