diff options
| author | mga (Tiny/Axelor) <mga@tinyerp.com> | 2009-02-04 18:12:33 +0530 |
|---|---|---|
| committer | mga (Tiny/Axelor) <mga@tinyerp.com> | 2009-02-04 18:12:33 +0530 |
| commit | 78a58a058ffc56e69a829c300031ca03f7b6aacb (patch) | |
| tree | 2b8bc5c8fbc11010db8eecb47468a9aa503adb02 /bin/sql_db.py | |
| parent | 6709e6e295f459c47f76b6bdfe23620eb1de0516 (diff) | |
| parent | a55983a9369111bad5d643ea2973a5ef463b0914 (diff) | |
merging from the trunk
bzr revid: mga@tinyerp.com-20090204124233-ityg49wrsc9i471o
Diffstat (limited to 'bin/sql_db.py')
| -rw-r--r-- | bin/sql_db.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/bin/sql_db.py b/bin/sql_db.py index ff9a6b0c2c6..1e88f1b66c7 100644 --- a/bin/sql_db.py +++ b/bin/sql_db.py @@ -116,8 +116,9 @@ class Cursor(object): try: res = self._obj.execute(query, params) - except: - log("bad query: %s" % self._obj.query, netsvc.LOG_ERROR) + except Exception, e: + log("bad query: %s" % self._obj.query) + log(e) raise if self.sql_log: |
