]> 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 70a9e18..21d44a4
@@ -30,6 +30,7 @@ Adding a date field to the process-new notes
 
 import psycopg2
 import time
+from daklib.dak_exceptions import DBUpdateError
 
 ################################################################################
 
@@ -43,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)))