Skip to content

Commit 218cec9

Browse files
committed
Add KeyError to builtins
1 parent ac95b61 commit 218cec9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

vm/src/builtins.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -831,6 +831,7 @@ pub fn make_module(ctx: &PyContext) -> PyObjectRef {
831831
"ZeroDivisionError",
832832
ctx.exceptions.zero_division_error.clone(),
833833
);
834+
ctx.set_attr(&py_mod, "KeyError", ctx.exceptions.key_error.clone());
834835

835836
py_mod
836837
}

0 commit comments

Comments
 (0)