X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=dak%2Fdakdb%2Fupdate18.py;h=bdf241084262522f86a95029b810ae17126c87ee;hb=55513d80673e99884067b8820ca1a0b3e9aeeeef;hp=ce0086f67e88af5b3a3a80e3ee6bb0da10f50145;hpb=0872b2e0b78670c91fd2bf0bda52e5761e079820;p=dak.git diff --git a/dak/dakdb/update18.py b/dak/dakdb/update18.py old mode 100755 new mode 100644 index ce0086f6..bdf24108 --- a/dak/dakdb/update18.py +++ b/dak/dakdb/update18.py @@ -144,13 +144,13 @@ def do_update(self): changes.changes = parse_changes(changesfile, signing_rules=-1) changes.changes["fingerprint"] = check_signature(changesfile) changes.add_known_changes(directory) - except InvalidDscError, line: + except InvalidDscError as line: warn("syntax error in .dsc file '%s', line %s." % (f, line)) failure += 1 except ChangesUnicodeError: warn("found invalid changes file, not properly utf-8 encoded") failure += 1 - except psycopg2.ProgrammingError, msg: + except psycopg2.ProgrammingError as msg: self.db.rollback() - raise DBUpdateError, "Unable to apply knownchanges update 18, rollback issued. Error message : %s" % (str(msg)) + raise DBUpdateError("Unable to apply knownchanges update 18, rollback issued. Error message : %s" % (str(msg)))