mirror of
https://github.com/RustPython/RustPython.git
synced 2026-10-28 10:44:36 +08:00
Auto-format: cargo fmt --all
This commit is contained in:
1 parent
6a12c91d61
commit
cb6c612f6b
1 file changed
+1
-2
@@ -827,8 +827,7 @@ mod sys {
|
||||
Ok(exc) => {
|
||||
// PyErr_Display: try traceback._print_exception_bltin first
|
||||
if let Ok(tb_mod) = vm.import("traceback", 0)
|
||||
&& let Ok(print_exc_builtin) =
|
||||
tb_mod.get_attr("_print_exception_bltin", vm)
|
||||
&& let Ok(print_exc_builtin) = tb_mod.get_attr("_print_exception_bltin", vm)
|
||||
&& print_exc_builtin
|
||||
.call((exc.as_object().to_owned(),), vm)
|
||||
.is_ok()
|
||||
|
||||
Reference in new issue
Block a user