X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=dak%2Fdakdb%2Fupdate12.py;h=21d44a4598103ddc54b2912eb616660f6de74fd4;hb=6cfc82886d71c7436a97ddfe7a5a1dde297886d2;hp=890f51cb66c75a767693cec4762450b5ae394d55;hpb=f0bfd37e7286156598d79b53501ebe2000bb7924;p=dak.git diff --git a/dak/dakdb/update12.py b/dak/dakdb/update12.py index 890f51cb..21d44a45 100755 --- a/dak/dakdb/update12.py +++ b/dak/dakdb/update12.py @@ -44,6 +44,6 @@ def do_update(self): c.execute("UPDATE config SET value = '12' WHERE name = 'db_revision'") self.db.commit() - except psycopg2.ProgrammingError, msg: + except psycopg2.ProgrammingError as msg: self.db.rollback() - raise DBUpdateError, "Unable to apply process-new update 12, rollback issued. Error message : %s" % (str(msg)) + raise DBUpdateError("Unable to apply process-new update 12, rollback issued. Error message : %s" % (str(msg)))