We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ea11d78 commit 42bba69Copy full SHA for 42bba69
vm/src/vm/vm_object.rs
@@ -46,7 +46,9 @@ impl VirtualMachine {
46
not(any(target_os = "emscripten", target_os = "wasi")),
47
))]
48
{
49
- let _ = exc;
+ use crate::convert::ToPyObject;
50
+ let err_string: String = exc.to_pyobject(self).repr(self).unwrap().to_string();
51
+ eprintln!("{err_string}");
52
panic!("{}; python exception not available", msg)
53
}
54
0 commit comments