X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=dak%2Fdakdb%2Fupdate23.py;h=4750c153b767fe21091a27865132b78cd091a9f1;hb=87db2ee3b980d39b99198f5aee19632397dd61f6;hp=2201a4ce1600f9c391b83ae036378b78a944b224;hpb=20dded05d7fae3bf52500a1543aa561dec2d62b6;p=dak.git diff --git a/dak/dakdb/update23.py b/dak/dakdb/update23.py index 2201a4ce..4750c153 100644 --- a/dak/dakdb/update23.py +++ b/dak/dakdb/update23.py @@ -54,11 +54,11 @@ CREATE VIEW srcfiles_suite_component AS JOIN location ON files.location = location.id; """) - print "Committing" - c.execute("UPDATE config SET value = '23' WHERE name = 'db_revision'") - self.db.commit() + print "Committing" + c.execute("UPDATE config SET value = '23' WHERE name = 'db_revision'") + self.db.commit() - except psycopg2.InternalError, msg: + except psycopg2.InternalError as msg: self.db.rollback() - raise DBUpdateError, "Database error, rollback issued. Error message : %s" % (str(msg)) + raise DBUpdateError("Database error, rollback issued. Error message : %s" % (str(msg)))