Skip to content

Commit b072b9b

Browse files
Update error message.
1 parent 8684e59 commit b072b9b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Objects/moduleobject.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -739,7 +739,8 @@ module_getattro(PyModuleObject *m, PyObject *name)
739739
if (initializing > 0) {
740740
PyErr_Format(PyExc_AttributeError,
741741
"partially initialized "
742-
"module '%U' has no attribute '%U'",
742+
"module '%U' has no attribute '%U' "
743+
"(most likely due to a circular import)",
743744
mod_name, name);
744745
}
745746
else {

0 commit comments

Comments
 (0)