From 326c7ff3fbfecd15230043690dd885fb7a664661 Mon Sep 17 00:00:00 2001 From: adustman Date: Sun, 28 Apr 2002 19:23:50 +0000 Subject: [PATCH] Errorhandler was broken in cursor CVSr ---------------------------------------------------------------------- --- MySQLdb/MySQLdb/cursors.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/MySQLdb/MySQLdb/cursors.py b/MySQLdb/MySQLdb/cursors.py index ccc9892..aa52f02 100644 --- a/MySQLdb/MySQLdb/cursors.py +++ b/MySQLdb/MySQLdb/cursors.py @@ -85,8 +85,7 @@ class BaseCursor: except TypeError, m: if m.args[0] in ("not enough arguments for format string", "not all arguments converted"): - self.errorhandler(self.connection, self, - ProgrammingError, m.args[0]) + self.errorhandler(self, ProgrammingError, m.args[0]) else: raise self._executed = query