mirror of
https://github.com/mii443/tokenizers.git
synced 2025-08-23 00:35:35 +00:00
Python - Expose PostProcessors
This commit is contained in:
@ -9,6 +9,9 @@ impl PyError {
|
||||
pub fn from(s: &str) -> Self {
|
||||
PyError(String::from(s))
|
||||
}
|
||||
pub fn into_pyerr(self) -> PyErr {
|
||||
exceptions::Exception::py_err(format!("{}", self))
|
||||
}
|
||||
}
|
||||
impl Display for PyError {
|
||||
fn fmt(&self, fmt: &mut Formatter) -> FmtResult {
|
||||
|
Reference in New Issue
Block a user