From 4988b2ebd7cf766f4c5de487307e3ebfdde76393 Mon Sep 17 00:00:00 2001 From: Nabin Hait Date: Wed, 11 Jan 2012 18:23:28 +0530 Subject: [PATCH] debug msg b4 execution --- py/webnotes/db.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/py/webnotes/db.py b/py/webnotes/db.py index 211a6202c3..07cec747d9 100644 --- a/py/webnotes/db.py +++ b/py/webnotes/db.py @@ -138,12 +138,12 @@ class Database: # execute try: if values!=(): - self._cursor.execute(query, values) if debug: webnotes.msgprint(query % values) + self._cursor.execute(query, values) else: - self._cursor.execute(query) if debug: webnotes.msgprint(query) + self._cursor.execute(query) except Exception, e: # ignore data definition errors if ignore_ddl and e.args[0] in (1146,1054,1091):