X-Git-Url: https://git.decadent.org.uk/gitweb/?p=dak.git;a=blobdiff_plain;f=dak%2Fdakdb%2Fupdate26.py;h=4329bc3aed7c3c29aa674f7a64e385a8b56ad601;hp=1b9a7fc14b11089addf6f5171b7dcde140ddaf38;hb=27e00376e81d1c37ff327ee0d39670b266418869;hpb=e956742235d6272e38424dc0c89b883153e776b7 diff --git a/dak/dakdb/update26.py b/dak/dakdb/update26.py index 1b9a7fc1..4329bc3a 100755 --- a/dak/dakdb/update26.py +++ b/dak/dakdb/update26.py @@ -61,7 +61,7 @@ def do_update(self): c.execute("UPDATE config SET value = '26' 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))