X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=dak%2Fdakdb%2Fupdate37.py;h=7ab52e04ca52ab9580d700822392c9826a97d772;hb=e2c4fd7f21c3b33cd7192bded5d6373e0ee90374;hp=5a6714bbf0dd4138ff6871b8d7250022a40cb16f;hpb=8914e2b474a44ae50b3b55c5c93d575c25a4d625;p=dak.git diff --git a/dak/dakdb/update37.py b/dak/dakdb/update37.py index 5a6714bb..7ab52e04 100755 --- a/dak/dakdb/update37.py +++ b/dak/dakdb/update37.py @@ -52,6 +52,6 @@ def do_update(self): c.execute("UPDATE config SET value = '37' WHERE name = 'db_revision'") self.db.commit() - except psycopg2.ProgrammingError, msg: + except psycopg2.ProgrammingError as msg: self.db.rollback() - raise DBUpdateError, 'Unable to apply table-colum update 37, rollback issued. Error message : %s' % (str(msg)) + raise DBUpdateError('Unable to apply table-colum update 37, rollback issued. Error message : %s' % (str(msg)))