X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=dak%2Fdakdb%2Fupdate39.py;h=c02b9629f0d34536da1c2b5286754dfc5d289217;hb=e2c4fd7f21c3b33cd7192bded5d6373e0ee90374;hp=8086b515f689c953344a055709762c2b306561c7;hpb=2a76a705c2236604e703884c6420b57efa60a9c9;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)))