Skip to content

Commit e611533

Browse files
committed
Let getattribute fall through and attribute error on types with dicts.
1 parent e68dbf6 commit e611533

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

vm/src/pyobject.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -417,7 +417,7 @@ impl AttributeProtocol for PyObjectRef {
417417
None
418418
}
419419
PyObjectKind::Instance { ref dict } => dict.get_item(attr_name),
420-
ref kind => unimplemented!("load_attr unimplemented for: {:?}", kind),
420+
_ => None,
421421
}
422422
}
423423

0 commit comments

Comments
 (0)