]> git.decadent.org.uk Git - dak.git/blobdiff - dak/dakdb/update46.py
Python modules should not be executable
[dak.git] / dak / dakdb / update46.py
old mode 100755 (executable)
new mode 100644 (file)
index d1b2d3a..109a887
@@ -72,6 +72,6 @@ CREATE TABLE source_metadata (
         c.execute("UPDATE config SET value = '46' WHERE name = 'db_revision'")
         self.db.commit()
 
-    except psycopg2.ProgrammingError, msg:
+    except psycopg2.ProgrammingError as msg:
         self.db.rollback()
-        raise DBUpdateError, 'Unable to apply update 46, rollback issued. Error message : %s' % (str(msg))
+        raise DBUpdateError('Unable to apply update 46, rollback issued. Error message : %s' % (str(msg)))