Skip to content

Commit af7160b

Browse files
Update specialize.c
1 parent 0c1e7e1 commit af7160b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Python/specialize.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -647,8 +647,8 @@ specialize_dict_access_hint(
647647
PyObject *value;
648648
Py_ssize_t index = _PyDict_LookupIndexAndValue(dict, name, &value);
649649
if (value != NULL && PyLazyImport_CheckExact(value)) {
650-
SPECIALIZATION_FAIL(LOAD_ATTR, SPEC_FAIL_ATTR_MODULE_LAZY_VALUE);
651-
return -1;
650+
SPECIALIZATION_FAIL(base_op, SPEC_FAIL_ATTR_MODULE_LAZY_VALUE);
651+
return 0;
652652
}
653653
if (index != (uint16_t)index) {
654654
SPECIALIZATION_FAIL(base_op,

0 commit comments

Comments
 (0)