(&self)
| 2107 | } |
| 2108 | |
| 2109 | pub(crate) fn topmost_exception(&self) -> Option<PyBaseExceptionRef> { |
| 2110 | let excs = self.exceptions.borrow(); |
| 2111 | excs.stack.iter().rev().find_map(|e| e.clone()) |
| 2112 | } |
| 2113 | |
| 2114 | pub fn handle_exit_exception(&self, exc: PyBaseExceptionRef) -> u32 { |
| 2115 | if exc.fast_isinstance(self.ctx.exceptions.system_exit) { |
no test coverage detected