Fixed error string when failing to import an exception (#4012)
This commit is contained in:
parent
60e3f44dcf
commit
ae3ac7d872
|
@ -0,0 +1 @@
|
|||
Fixed the error message when a class referenced in `pyo3::import_exception!` does not exist
|
|
@ -123,7 +123,7 @@ macro_rules! import_exception {
|
|||
::std::panic!("Can not import module {}: {}\n{}", stringify!($module), err, traceback);
|
||||
});
|
||||
let cls = imp.getattr(stringify!($name)).expect(concat!(
|
||||
"Can not load exception class: {}.{}",
|
||||
"Can not load exception class: ",
|
||||
stringify!($module),
|
||||
".",
|
||||
stringify!($name)
|
||||
|
|
Loading…
Reference in New Issue