X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=dak%2Fdakdb%2Fupdate26.py;h=358f2ae46907ed5be49516dfe458e85aee523480;hb=362ea497d3c9ee5891fca772132269d809a0547a;hp=1b9a7fc14b11089addf6f5171b7dcde140ddaf38;hpb=f0bfd37e7286156598d79b53501ebe2000bb7924;p=dak.git diff --git a/dak/dakdb/update26.py b/dak/dakdb/update26.py old mode 100755 new mode 100644 index 1b9a7fc1..358f2ae4 --- 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)) + raise DBUpdateError("Database error, rollback issued. Error message : %s" % (str(msg)))