X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=dak%2Fdakdb%2Fupdate11.py;h=17001d391f58c00719c5c29b607044154be6a83a;hb=e2c4fd7f21c3b33cd7192bded5d6373e0ee90374;hp=53f1572a2c0b89bb3f8d19183eeae41b1eb8cdd7;hpb=6237cc158b46ecd9303d1a09bec56b22983bc968;p=dak.git diff --git a/dak/dakdb/update11.py b/dak/dakdb/update11.py index 53f1572a..17001d39 100755 --- a/dak/dakdb/update11.py +++ b/dak/dakdb/update11.py @@ -30,6 +30,7 @@ Adding process-new comments to the DB import psycopg2 import time +from daklib.dak_exceptions import DBUpdateError ################################################################################ @@ -57,6 +58,6 @@ def do_update(self): c.execute("UPDATE config SET value = '11' WHERE name = 'db_revision'") self.db.commit() - except psycopg2.ProgrammingError, msg: + except psycopg2.ProgrammingError as msg: self.db.rollback() - raise DBUpdateError, "Unable to apply process-new comments update, rollback issued. Error message : %s" % (str(msg)) + raise DBUpdateError("Unable to apply process-new comments update, rollback issued. Error message : %s" % (str(msg)))