X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=dak%2Fdakdb%2Fupdate29.py;h=c77d99dad5229510534fd08ffc773914b7d71ba4;hb=1ea2a64a2b01c6fa4456451de487414111504171;hp=d25c1011a56fbba16449f940f7972798b17f74c2;hpb=f0bfd37e7286156598d79b53501ebe2000bb7924;p=dak.git diff --git a/dak/dakdb/update29.py b/dak/dakdb/update29.py index d25c1011..c77d99da 100644 --- a/dak/dakdb/update29.py +++ b/dak/dakdb/update29.py @@ -47,6 +47,6 @@ def do_update(self): c.execute("UPDATE config SET value = '29' WHERE name = 'db_revision'") self.db.commit() - except psycopg2.ProgrammingError, msg: + except psycopg2.ProgrammingError as msg: self.db.rollback() - raise DBUpdateError, "Unable to appy debversion updates, rollback issued. Error message : %s" % (str(msg)) + raise DBUpdateError("Unable to appy debversion updates, rollback issued. Error message : %s" % (str(msg)))