mirror of
https://github.com/RustPython/RustPython.git
synced 2026-10-29 03:04:38 +08:00
Propagate errors from warnings.warn() calls
This commit is contained in:
1 parent
188d438e00
commit
fce2d7824f
1 file changed
+1
-1
@@ -12,7 +12,7 @@ pub fn warn(
|
||||
if let Ok(module) = vm.import("warnings", 0)
|
||||
&& let Ok(func) = module.get_attr("warn", vm)
|
||||
{
|
||||
let _ = func.call((message, category.to_owned(), stack_level), vm);
|
||||
func.call((message, category.to_owned(), stack_level), vm)?;
|
||||
}
|
||||
Ok(())
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user