MCPcopy Create free account
hub / github.com/Sigil-Ebook/Sigil / UnidecodeError

Class UnidecodeError

src/Resource_Files/python3lib/unidecode/__init__.py:24–32  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

22Cache = {} # type: Dict[int, Optional[Sequence[Optional[str]]]]
23
24class UnidecodeError(ValueError):
25 def __init__(self, message: str, index: Optional[int] = None) -> None:
26 """Raised for Unidecode-related errors.
27
28 The index attribute contains the index of the character that caused
29 the error.
30 """
31 super(UnidecodeError, self).__init__(message)
32 self.index = index
33
34
35def unidecode_expect_ascii(string: str, errors: str = 'ignore', replace_str: str = '?') -> str:

Callers 1

_unidecodeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected