]> git.decadent.org.uk Git - dak.git/blobdiff - dak/dakdb/update38.py
Merge branch 'master' into pu/backports-merge
[dak.git] / dak / dakdb / update38.py
old mode 100755 (executable)
new mode 100644 (file)
index 583aa3a..da3a1d6
@@ -51,6 +51,6 @@ def do_update(self):
         c.execute("UPDATE config SET value = '38' 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-column update 38, rollback issued. Error message : %s' % (str(msg))
+        raise DBUpdateError('Unable to apply table-column update 38, rollback issued. Error message : %s' % (str(msg)))