X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=dak%2Fdakdb%2Fupdate27.py;h=7a492a3f2f399e5448747fe4e19b74a3f03fa362;hb=27e00376e81d1c37ff327ee0d39670b266418869;hp=b06932b52ed1e20e89c4a7224627ed9d85d7d6dc;hpb=4c7eee9642e82b6286f807ad92a93e7ef30288e6;p=dak.git diff --git a/dak/dakdb/update27.py b/dak/dakdb/update27.py index b06932b5..7a492a3f 100755 --- 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))