X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=dak%2Fdakdb%2Fupdate14.py;h=575e5d234a2866433d49a0565dcd348d60b00a90;hb=d8f07b1f17a1048b4d26362db8563330f889e087;hp=4f1b1dac893c8dc247e19af533e98772e4c34b3a;hpb=f0bfd37e7286156598d79b53501ebe2000bb7924;p=dak.git diff --git a/dak/dakdb/update14.py b/dak/dakdb/update14.py index 4f1b1dac..575e5d23 100755 --- a/dak/dakdb/update14.py +++ b/dak/dakdb/update14.py @@ -48,6 +48,6 @@ def do_update(self): c.execute("UPDATE config SET value = '14' 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 14, rollback issued. Error message : %s" % (str(msg)) + raise DBUpdateError("Unable to apply process-new update 14, rollback issued. Error message : %s" % (str(msg)))