diff --git a/vm/src/exceptions.rs b/vm/src/exceptions.rs index 4fe47cbc3..6780c07e0 100644 --- a/vm/src/exceptions.rs +++ b/vm/src/exceptions.rs @@ -73,7 +73,7 @@ fn exception_str(vm: &mut VirtualMachine, args: PyFuncArgs) -> PyResult { let msg = if let Some(m) = exc.get_attr("msg") { match vm.to_pystr(&m) { Ok(msg) => msg, - _ => "".to_string(), + _ => "".to_string(), } } else { panic!("Error message must be set");