(&self, exc: Option<PyBaseExceptionRef>)
| 2038 | } |
| 2039 | |
| 2040 | pub(crate) fn push_exception(&self, exc: Option<PyBaseExceptionRef>) { |
| 2041 | self.exceptions.borrow_mut().stack.push(exc); |
| 2042 | #[cfg(feature = "threading")] |
| 2043 | thread::update_thread_exception(self.topmost_exception()); |
| 2044 | } |
| 2045 | |
| 2046 | pub(crate) fn pop_exception(&self) -> Option<PyBaseExceptionRef> { |
| 2047 | let exc = self |
no test coverage detected