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:
parent
439eaa9f74
commit
1d7c55faee
|
@ -475,8 +475,7 @@ my_##NAME##Handler PARAMS {\
|
||||||
if (self->handlers[NAME] \
|
if (self->handlers[NAME] \
|
||||||
&& self->handlers[NAME] != Py_None) { \
|
&& self->handlers[NAME] != Py_None) { \
|
||||||
args = Py_BuildValue PARAM_FORMAT ;\
|
args = Py_BuildValue PARAM_FORMAT ;\
|
||||||
if (!args) \
|
if (!args) { flag_error(self); return RETURN;} \
|
||||||
return RETURN; \
|
|
||||||
self->in_callback = 1; \
|
self->in_callback = 1; \
|
||||||
rv = call_with_frame(getcode(NAME,#NAME,__LINE__), \
|
rv = call_with_frame(getcode(NAME,#NAME,__LINE__), \
|
||||||
self->handlers[NAME], args); \
|
self->handlers[NAME], args); \
|
||||||
|
|
Loading…
Reference in New Issue