X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=dak%2Fdakdb%2Fupdate28.py;h=f0c62e0e8176ba26c027943f6adde5b36bcf9739;hb=9a4fb568340b14698947bfa59b309ae0c67c693a;hp=79b0e8db8250fb3e657edcf9daf9ba4fdb1706a5;hpb=0872b2e0b78670c91fd2bf0bda52e5761e079820;p=dak.git diff --git a/dak/dakdb/update28.py b/dak/dakdb/update28.py index 79b0e8db..f0c62e0e 100755 --- a/dak/dakdb/update28.py +++ b/dak/dakdb/update28.py @@ -40,7 +40,7 @@ def _suites(): """ return a list of suites to operate on """ - suites = Config().SubTree("Suite").List() + suites = Config().subtree("Suite").list() return suites def arches(cursor, suite): @@ -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)))