always clear parser error

This commit is contained in:
Benjamin Peterson 2011-06-05 22:14:05 -05:00
parent b58359cca8
commit f0cdbad1b3

View file

@ -583,8 +583,8 @@ parser_do_parse(PyObject *args, PyObject *kw, char *argspec, int type)
}
else {
PyParser_SetError(&err);
PyParser_ClearError(&err);
}
PyParser_ClearError(&err);
}
return (res);
}