Helper function to create SSL error with proper OSError subtype handling
(vm: &VirtualMachine, msg: impl ToString)
| 3736 | |
| 3737 | /// Helper function to create SSL error with proper OSError subtype handling |
| 3738 | fn new_ssl_error(vm: &VirtualMachine, msg: impl ToString) -> PyBaseExceptionRef { |
| 3739 | vm.new_os_subtype_error(PySSLError::class(&vm.ctx).to_owned(), None, msg.to_string()) |
| 3740 | .upcast() |
| 3741 | } |
| 3742 | |
| 3743 | #[track_caller] |
| 3744 | pub(crate) fn convert_openssl_error( |
no test coverage detected