Skip to content
Prev Previous commit
apply suggestion
  • Loading branch information
youknowone committed Aug 8, 2024
commit 42bba6920e0ab0e0fbd576d83229e5191d92444c
4 changes: 3 additions & 1 deletion vm/src/vm/vm_object.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,9 @@ impl VirtualMachine {
not(any(target_os = "emscripten", target_os = "wasi")),
))]
{
let _ = exc;
use crate::convert::ToPyObject;
let err_string: String = exc.to_pyobject(self).repr(self).unwrap().to_string();
eprintln!("{err_string}");
panic!("{}; python exception not available", msg)
}
}
Expand Down