]> git.decadent.org.uk Git - dak.git/blobdiff - dak/dakdb/update60.py
dak/dakdb/update79.py: add world schema and new stable views
[dak.git] / dak / dakdb / update60.py
old mode 100755 (executable)
new mode 100644 (file)
index 4cf6ee8..0173529
@@ -51,6 +51,6 @@ def do_update(self):
         c.execute("UPDATE config SET value = '60' 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 60, rollback issued. Error message : %s' % (str(msg))
+        raise DBUpdateError('Unable to apply sick update 60, rollback issued. Error message : %s' % (str(msg)))