X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=dak%2Fdakdb%2Fupdate28.py;h=f0c62e0e8176ba26c027943f6adde5b36bcf9739;hb=d31ae14a9de247d47d9ff7b3f36705a58a065916;hp=79b0e8db8250fb3e657edcf9daf9ba4fdb1706a5;hpb=f0bfd37e7286156598d79b53501ebe2000bb7924;p=dak.git diff --git a/dak/dakdb/update28.py b/dak/dakdb/update28.py old mode 100755 new mode 100644 index 79b0e8db..f0c62e0e --- 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)))