Commit 98b58b34 authored by Martin v. Löwis's avatar Martin v. Löwis

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

Fixes problem with not detecting UTF-8 errors.
parent 0c11f09a
......@@ -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); \
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment