[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[snapshot/master] The world is mean and no longer likes string exceptions



---
 db/upgrade |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/db/upgrade b/db/upgrade
index 32deda9..ed5d453 100755
--- a/db/upgrade
+++ b/db/upgrade
@@ -68,7 +68,7 @@ def upgrade(db):
 
     except psycopg2.ProgrammingError, msg:
         db.execute('ROLLBACK')
-        raise "Unable to apply update: %s" % (str(msg))
+        raise Exception("Unable to apply update", str(msg))
 
 
 def usage(err = False):
-- 
1.7.2.5



Reply to: