X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=dak%2Fdakdb%2Fupdate23.py;h=4750c153b767fe21091a27865132b78cd091a9f1;hb=731d594cc9032c1e889c90bc55092536c96e284c;hp=48abf0162df781d6caa47518d5dc6bfa9ae749f2;hpb=c74502b4aa89d7ec442c3d4ca941eb02b81b7a1a;p=dak.git diff --git a/dak/dakdb/update23.py b/dak/dakdb/update23.py old mode 100755 new mode 100644 index 48abf016..4750c153 --- a/dak/dakdb/update23.py +++ b/dak/dakdb/update23.py @@ -58,7 +58,7 @@ CREATE VIEW srcfiles_suite_component AS c.execute("UPDATE config SET value = '23' WHERE name = 'db_revision'") self.db.commit() - except psycopg2.InternalError, msg: + except psycopg2.InternalError as msg: self.db.rollback() - raise DBUpdateError, "Database error, rollback issued. Error message : %s" % (str(msg)) + raise DBUpdateError("Database error, rollback issued. Error message : %s" % (str(msg)))