Skip to content

Commit 0f43042

Browse files
committed
Better wording, perchance.
1 parent 4c8455b commit 0f43042

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Objects/lazyimportobject.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,8 @@ lazy_import_getattro(PyObject *op, PyObject *name) {
9494
return NULL;
9595
}
9696
PyErr_Format(PyExc_AttributeError,
97-
"lazy import '%U' has no attribute '%U'",
98-
lz_name, name);
97+
"cannot access attribute '%U' on unresolved lazy import '%U'",
98+
name, lz_name);
9999
Py_DECREF(lz_name);
100100
return NULL;
101101
}

0 commit comments

Comments
 (0)