]> git.donarmstrong.com Git - dak.git/blobdiff - dak/dakdb/update22.py
Convert raise statement to Python 2.6.
[dak.git] / dak / dakdb / update22.py
index dbd7ced6023c1d3bf77b7c225ca1a4e4361d8211..5c852c67024f0b6a73e4595d51c3ae4f33067ebb 100755 (executable)
@@ -235,6 +235,6 @@ def do_update(self):
         c.execute("UPDATE config SET value = '22' WHERE name = 'db_revision'")
         self.db.commit()
 
-    except psycopg2.InternalError, msg:
+    except psycopg2.InternalError as msg:
         self.db.rollback()
-        raise DBUpdateError, "Unable to apply queue_build 21, rollback issued. Error message : %s" % (str(msg))
+        raise DBUpdateError("Unable to apply queue_build 21, rollback issued. Error message : %s" % (str(msg)))