]> git.decadent.org.uk Git - dak.git/blobdiff - dak/dakdb/update12.py
Python modules should not be executable
[dak.git] / dak / dakdb / update12.py
old mode 100755 (executable)
new mode 100644 (file)
index 890f51c..21d44a4
@@ -44,6 +44,6 @@ def do_update(self):
         c.execute("UPDATE config SET value = '12' WHERE name = 'db_revision'")
         self.db.commit()
 
-    except psycopg2.ProgrammingError, msg:
+    except psycopg2.ProgrammingError as msg:
         self.db.rollback()
-        raise DBUpdateError, "Unable to apply process-new update 12, rollback issued. Error message : %s" % (str(msg))
+        raise DBUpdateError("Unable to apply process-new update 12, rollback issued. Error message : %s" % (str(msg)))