Skip to content

Commit bf33c19

Browse files
committed
Use expect instead of unwrap in new_stop_iteration
1 parent 3eca07d commit bf33c19

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

crates/vm/src/vm/vm_new.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -902,7 +902,7 @@ impl VirtualMachine {
902902
};
903903
let exc = self.invoke_exception(stop_iteration_error, args);
904904

905-
exc.unwrap()
905+
exc.expect("StopIteration is a BaseException Subclass.")
906906
}
907907

908908
fn new_downcast_error(

0 commit comments

Comments
 (0)