X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=dak%2Fdakdb%2Fupdate20.py;h=c1424ab2da502aa8c236dcfb4dc2d0f8ba1ad912;hb=e2c4fd7f21c3b33cd7192bded5d6373e0ee90374;hp=f4e34cb96b56428791918a43642d4fa8f932e071;hpb=f0bfd37e7286156598d79b53501ebe2000bb7924;p=dak.git diff --git a/dak/dakdb/update20.py b/dak/dakdb/update20.py index f4e34cb9..c1424ab2 100755 --- a/dak/dakdb/update20.py +++ b/dak/dakdb/update20.py @@ -95,6 +95,6 @@ def do_update(self): c.execute("UPDATE config SET value = '20' WHERE name = 'db_revision'") self.db.commit() - except psycopg2.InternalError, msg: + except psycopg2.InternalError as msg: self.db.rollback() - raise DBUpdateError, "Unable to apply debversion update 20, rollback issued. Error message : %s" % (str(msg)) + raise DBUpdateError("Unable to apply debversion update 20, rollback issued. Error message : %s" % (str(msg)))