X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=dak%2Fdakdb%2Fupdate25.py;h=0ce8ab6e1298645203c4dad206bfe91efbc974ed;hb=6cc75beccd14c9b39621cb5894d67cec24750405;hp=b2813d9118f820438676a54f9b7bf78aeb718b18;hpb=54a1e63df2a81a8f5e6f3148d59afcfeaa7b3495;p=dak.git diff --git a/dak/dakdb/update25.py b/dak/dakdb/update25.py old mode 100644 new mode 100755 index b2813d91..0ce8ab6e --- a/dak/dakdb/update25.py +++ b/dak/dakdb/update25.py @@ -183,7 +183,7 @@ CREATE VIEW obsolete_all_associations AS c.execute("UPDATE config SET value = '25' 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)))