X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=dak%2Fdakdb%2Fupdate34.py;h=35351c249c868d24bf2a03622717a29de60c31c0;hb=a2dc25494de9b598f43f60730c3fe6beffd1b9ca;hp=ea0535dba185543bb34b557f52f0e84cce4c9e5f;hpb=afd85fa38556762baebd7520951fb12ec52fba62;p=dak.git diff --git a/dak/dakdb/update34.py b/dak/dakdb/update34.py index ea0535db..35351c24 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))