X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=dak%2Fdakdb%2Fupdate5.py;h=a42e540cdabd01dc10c4f453fc5105fa2a2ecce0;hb=ebbace9d50c2f9ec454261cfcd4494017c603ca7;hp=49e338916b92f1a0b4ba9d16912d0059829bde12;hpb=35cd0972b5e14dc8727403e13fccd30776f3ae02;p=dak.git diff --git a/dak/dakdb/update5.py b/dak/dakdb/update5.py old mode 100755 new mode 100644 index 49e33891..a42e540c --- 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)))