Merge 1.42 from PyXML: Flag errors resulting from argument conversion problems.

Fixes problem with not detecting UTF-8 errors.
This commit is contained in:
Martin v. Löwis 2001-11-10 13:57:55 +00:00
parent 439eaa9f74
commit 1d7c55faee
1 changed files with 1 additions and 2 deletions

View File

@ -475,8 +475,7 @@ my_##NAME##Handler PARAMS {\
if (self->handlers[NAME] \
&& self->handlers[NAME] != Py_None) { \
args = Py_BuildValue PARAM_FORMAT ;\
if (!args) \
return RETURN; \
if (!args) { flag_error(self); return RETURN;} \
self->in_callback = 1; \
rv = call_with_frame(getcode(NAME,#NAME,__LINE__), \
self->handlers[NAME], args); \