We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 20e0cc8 commit 256abe6Copy full SHA for 256abe6
1 file changed
vm/src/frame.rs
@@ -1207,9 +1207,7 @@ impl Frame {
1207
"Can only raise BaseException derived types, not {}",
1208
exception
1209
);
1210
- let type_error_type = vm.ctx.exceptions.type_error.clone();
1211
- let type_error = vm.new_exception(type_error_type, msg);
1212
- Err(type_error)
+ Err(vm.new_type_error(msg))
1213
}
1214
} else {
1215
Err(vm.new_type_error("exceptions must derive from BaseException".to_string()))
0 commit comments