From: Holger Levsen Date: Fri, 12 Oct 2012 12:34:49 +0000 (+0200) Subject: fix typo X-Git-Url: https://git.uhu-banane.de/?a=commitdiff_plain;h=c36db5a51a628389411aa6b282d6adfbdd2a6181;p=profitbricks%2Fjenkins-build-scripts.git fix typo --- 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))