X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=dak%2Fdakdb%2Fupdate27.py;h=814e60150ad8ebba93e20bbf724f50ece1a2b00f;hb=47cd096281f1cc36dfe9818ef1fbae8d02f6ada6;hp=b06932b52ed1e20e89c4a7224627ed9d85d7d6dc;hpb=08522d77db6c4df0f7241676d765cdcf9e2da5b3;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)))