Skip to content

Commit

Permalink
xx
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris00 committed May 4, 2024
1 parent 416da17 commit 17a77d7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,10 @@ macro_rules! pyimport { ($m: literal) => {
match PyModule::import_bound(py, intern!(py, $m)) {
Ok(m) => Ok(m.into()),
Err(e) => {
let v = e.value_bound(py).to_string();
let mut v = e.value_bound(py).to_string();
v.push_str(" (");
v.push_str(stringify!($m));
v.push_str(")");
Err(ImportError(v))
}
})
Expand Down

0 comments on commit 17a77d7

Please sign in to comment.