Skip to content

Commit ba9c8e2

Browse files
authored
Update crates/vm/src/exception_group.rs
1 parent cb878a0 commit ba9c8e2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

crates/vm/src/exception_group.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -290,8 +290,8 @@ pub(super) mod types {
290290
Ok(vm.ctx.new_tuple(vec![match_group, rest_group]))
291291
}
292292

293-
#[pymethod(name = "__str__")]
294-
fn str(zelf: PyRef<PyBaseException>, vm: &VirtualMachine) -> PyResult<String> {
293+
#[pymethod]
294+
fn __str__(zelf: PyRef<PyBaseException>, vm: &VirtualMachine) -> PyResult<String> {
295295
let message = zelf
296296
.get_arg(0)
297297
.map(|m| m.str(vm))

0 commit comments

Comments
 (0)