X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=dak%2Fdakdb%2Fupdate28.py;h=1455ee3110284d3cdd4d48effd237f1d0a1fc2d0;hb=3b42439cf9633e63c18553d9c8c1efd1f0aa7174;hp=79b0e8db8250fb3e657edcf9daf9ba4fdb1706a5;hpb=df2c7e1554c6bfeb27761112b8ddfe8223a66136;p=dak.git diff --git a/dak/dakdb/update28.py b/dak/dakdb/update28.py index 79b0e8db..1455ee31 100755 --- a/dak/dakdb/update28.py +++ b/dak/dakdb/update28.py @@ -265,7 +265,7 @@ $$ LANGUAGE plpythonu VOLATILE;""") self.db.commit() - except psycopg2.ProgrammingError, msg: + except psycopg2.ProgrammingError as msg: self.db.rollback() - raise DBUpdateError, "Unable to apply process-new update 28, rollback issued. Error message : %s" % (str(msg)) + raise DBUpdateError("Unable to apply process-new update 28, rollback issued. Error message : %s" % (str(msg)))