X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=dak%2Fdakdb%2Fupdate5.py;h=a42e540cdabd01dc10c4f453fc5105fa2a2ecce0;hb=df984f92931b276da9e3ddb0b2fb6e7dc05d91d6;hp=49e338916b92f1a0b4ba9d16912d0059829bde12;hpb=f0bfd37e7286156598d79b53501ebe2000bb7924;p=dak.git diff --git a/dak/dakdb/update5.py b/dak/dakdb/update5.py index 49e33891..a42e540c 100755 --- a/dak/dakdb/update5.py +++ b/dak/dakdb/update5.py @@ -46,6 +46,6 @@ def do_update(self): self.db.commit() - except psycopg2.ProgrammingError, msg: + except psycopg2.ProgrammingError as msg: self.db.rollback() - raise DBUpdateError, "Unable to recreate bin_assoc_by_arch view, rollback issued. Error message : %s" % (str(msg)) + raise DBUpdateError("Unable to recreate bin_assoc_by_arch view, rollback issued. Error message : %s" % (str(msg)))