X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=dak%2Fdakdb%2Fupdate39.py;h=c02b9629f0d34536da1c2b5286754dfc5d289217;hb=362ea497d3c9ee5891fca772132269d809a0547a;hp=8086b515f689c953344a055709762c2b306561c7;hpb=f0bfd37e7286156598d79b53501ebe2000bb7924;p=dak.git diff --git a/dak/dakdb/update39.py b/dak/dakdb/update39.py index 8086b515..c02b9629 100644 --- a/dak/dakdb/update39.py +++ b/dak/dakdb/update39.py @@ -42,6 +42,6 @@ def do_update(self): c.execute("UPDATE config SET value = '39' WHERE name = 'db_revision'") self.db.commit() - except psycopg2.ProgrammingError, msg: + except psycopg2.ProgrammingError as msg: self.db.rollback() - raise DBUpdateError, 'Unable to apply table-column update 39, rollback issued. Error message : %s' % (str(msg)) + raise DBUpdateError('Unable to apply table-column update 39, rollback issued. Error message : %s' % (str(msg)))