Skip to content
Prev Previous commit
Next Next commit
Update Python/ceval.c
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
  • Loading branch information
hauntsaninja and serhiy-storchaka authored Dec 9, 2024
commit d5aa69cfd33ecd650ee67d4514403930b0c5d511
2 changes: 1 addition & 1 deletion Python/ceval.c
Original file line number Diff line number Diff line change
Expand Up @@ -2934,7 +2934,7 @@ _PyEval_ImportFrom(PyThreadState *tstate, PyObject *v, PyObject *name)

done_with_errmsg:
if (errmsg != NULL) {
/* NULL checks for errmsg, mod_name, origin done by _PyErr_SetImportErrorWithNameFrom */
/* NULL checks for mod_name and origin done by _PyErr_SetImportErrorWithNameFrom */
_PyErr_SetImportErrorWithNameFrom(errmsg, mod_name, origin, name);
Py_DECREF(errmsg);
}
Expand Down