Skip to content

Commit eadc47b

Browse files
committed
apply suggestion
1 parent ec7334c commit eadc47b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

vm/src/vm/vm_object.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,9 @@ impl VirtualMachine {
4646
not(any(target_os = "emscripten", target_os = "wasi")),
4747
))]
4848
{
49-
let _ = exc;
49+
use crate::convert::ToPyObject;
50+
let err_string: String = exc.to_pyobject(self).repr(self).unwrap().to_string();
51+
eprintln!("{err_string}");
5052
panic!("{}; python exception not available", msg)
5153
}
5254
}

0 commit comments

Comments
 (0)