X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=dak%2Fdakdb%2Fupdate27.py;h=814e60150ad8ebba93e20bbf724f50ece1a2b00f;hb=7db3402aa3615137ec7eb58bd3ba7ac662381d0f;hp=b06932b52ed1e20e89c4a7224627ed9d85d7d6dc;hpb=79aed1d0e844f075a60b115637605064d6d9ac63;p=dak.git diff --git a/dak/dakdb/update27.py b/dak/dakdb/update27.py old mode 100755 new mode 100644 index b06932b5..814e6015 --- a/dak/dakdb/update27.py +++ b/dak/dakdb/update27.py @@ -74,7 +74,7 @@ CREATE OR REPLACE VIEW bin_associations_binaries AS c.execute("UPDATE config SET value = '27' 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)))