]> Frank Brehm's Git Trees - profitbricks/jenkins-build-scripts.git/commitdiff
fix typo
authorHolger Levsen <holger@layer-acht.org>
Fri, 12 Oct 2012 12:34:49 +0000 (14:34 +0200)
committerHolger Levsen <holger@layer-acht.org>
Fri, 12 Oct 2012 12:34:49 +0000 (14:34 +0200)
db_add.py

index 0b04c2373f52c324988e22bb6ca18b02811a1d29..0a3033c094696aac2f4ca956d134d6b82019d1fb 100755 (executable)
--- 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))