We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 42e6eec commit 942dccfCopy full SHA for 942dccf
vm/src/frame.rs
@@ -541,7 +541,7 @@ impl ExecutingFrame<'_> {
541
let result = self.locals.mapping().subscript(name, vm);
542
match result {
543
Ok(x) => self.push_value(x),
544
- Err(e) if e.class().is(vm.ctx.exceptions.key_error) => {
+ Err(e) if e.fast_isinstance(vm.ctx.exceptions.key_error) => {
545
self.push_value(self.load_global_or_builtin(name, vm)?);
546
}
547
Err(e) => return Err(e),
0 commit comments