We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aa8d0a2 commit b136f11Copy full SHA for b136f11
1 file changed
Modules/_elementtree.c
@@ -3990,6 +3990,11 @@ PyInit__elementtree(void)
3990
st->deepcopy_obj = PyObject_GetAttrString(temp, "deepcopy");
3991
Py_XDECREF(temp);
3992
3993
+ if (st->deepcopy_obj == NULL) {
3994
+ return NULL;
3995
+ }
3996
+
3997
+ assert(!PyErr_Occurred());
3998
if (!(st->elementpath_obj = PyImport_ImportModule("xml.etree.ElementPath")))
3999
return NULL;
4000
0 commit comments