X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=dak%2Fdakdb%2Fupdate47.py;h=a6626594fb99ed96ccd8bfa01d8a5e5c59e38e12;hb=8eef1cfc770d01b357ac3a413f3ccd94c30065f7;hp=81d9cd788f44b8eb3d5a1f7399a3fb1b3b867a35;hpb=3a82a780e7f5821ecfcc005aa97c463014b5dfed;p=dak.git diff --git a/dak/dakdb/update47.py b/dak/dakdb/update47.py index 81d9cd78..a6626594 100755 --- a/dak/dakdb/update47.py +++ b/dak/dakdb/update47.py @@ -47,6 +47,6 @@ def do_update(self): c.execute("UPDATE config SET value = '47' WHERE name = 'db_revision'") self.db.commit() - except psycopg2.ProgrammingError, msg: + except psycopg2.ProgrammingError as msg: self.db.rollback() - raise DBUpdateError, 'Unable to apply sick update 47, rollback issued. Error message : %s' % (str(msg)) + raise DBUpdateError('Unable to apply sick update 47, rollback issued. Error message : %s' % (str(msg)))