From d2b4099cdb6c96074a206d0da4132c0ea790a67e Mon Sep 17 00:00:00 2001 From: mdipierro Date: Fri, 30 Nov 2012 08:34:11 -0600 Subject: [PATCH] fixed error reporting in dal --- VERSION | 2 +- gluon/dal.py | 2 +- scripts/setup-web2py-heroku.sh | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/VERSION b/VERSION index 4bef81dc..9a8959c3 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -Version 2.2.1 (2012-11-29 23:53:48) stable +Version 2.2.1 (2012-11-30 08:33:32) stable diff --git a/gluon/dal.py b/gluon/dal.py index 4b489813..241ba5c5 100644 --- a/gluon/dal.py +++ b/gluon/dal.py @@ -706,7 +706,7 @@ class BaseAdapter(ConnectionPool): self.driver_name = drivers_available[0] self.driver = globals().get(self.driver_name) else: - raise RuntimeError("no driver available %s" % self.drivers) + raise RuntimeError("no driver available %s" % str(self.drivers)) def __init__(self, db,uri,pool_size=0, folder=None, db_codec='UTF-8', diff --git a/scripts/setup-web2py-heroku.sh b/scripts/setup-web2py-heroku.sh index 0642f9eb..c8051d1f 100644 --- a/scripts/setup-web2py-heroku.sh +++ b/scripts/setup-web2py-heroku.sh @@ -1,6 +1,6 @@ read -p "Choose your admin password?" passwd sudo pip install virtualenv -sudo pip install postgresql2 +sudo pip install psycopg2 virtualenv venv --distribute source venv/bin/activate pip freeze > requirements.txt