X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=dak%2Fdakdb%2Fupdate34.py;h=03f15739438bcae0ee28bf3f8ffc5194799495f1;hb=4174286376153578f1444aa0afcfa2b5bfe1fe61;hp=ea0535dba185543bb34b557f52f0e84cce4c9e5f;hpb=afd85fa38556762baebd7520951fb12ec52fba62;p=dak.git diff --git a/dak/dakdb/update34.py b/dak/dakdb/update34.py index ea0535db..03f15739 100644 --- a/dak/dakdb/update34.py +++ b/dak/dakdb/update34.py @@ -43,6 +43,6 @@ def do_update(self): c.execute("UPDATE config SET value = '34' WHERE name = 'db_revision'") self.db.commit() - except psycopg2.ProgrammingError, msg: + except psycopg2.ProgrammingError as msg: self.db.rollback() - raise DBUpdateError, 'Unable to apply build_queue update 34, rollback issued. Error message : %s' % (str(msg)) + raise DBUpdateError('Unable to apply build_queue update 34, rollback issued. Error message : %s' % (str(msg)))