Errorhandler was broken in cursor

CVSr ----------------------------------------------------------------------
This commit is contained in:
adustman
2002-04-28 19:23:50 +00:00
parent 08d8d2625c
commit 326c7ff3fb

View File

@@ -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