X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=dak%2Fdakdb%2Fupdate4.py;h=938522ccd83cddacc7d9765cd360c2c6d034f1c5;hb=d8f07b1f17a1048b4d26362db8563330f889e087;hp=8c55d09b219066407a0fba9d9255f9d73aca0aa5;hpb=929bf86ab60e428e656c2212fe5805b8ca1b9c43;p=dak.git diff --git a/dak/dakdb/update4.py b/dak/dakdb/update4.py index 8c55d09b..938522cc 100755 --- a/dak/dakdb/update4.py +++ b/dak/dakdb/update4.py @@ -1,12 +1,10 @@ #!/usr/bin/env python - """ -Database Update Script - Get suite_architectures table use sane values +Get suite_architectures table use sane values @contact: Debian FTP Master @copyright: 2009 Joerg Jaspert @license: GNU General Public License version 2 or later - """ # This program is free software; you can redistribute it and/or modify @@ -66,6 +64,6 @@ def do_update(self): self.db.commit() - except psycopg2.ProgrammingError, msg: + except psycopg2.ProgrammingError as msg: self.db.rollback() - raise DBUpdateError, "Unable to apply sanity to suite_architecture table, rollback issued. Error message : %s" % (str(msg)) + raise DBUpdateError("Unable to apply sanity to suite_architecture table, rollback issued. Error message : %s" % (str(msg)))