summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Modules/parsermodule.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/parsermodule.c b/Modules/parsermodule.c
index 1ffa896..f1679d7 100644
--- a/Modules/parsermodule.c
+++ b/Modules/parsermodule.c
@@ -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);
}