mirror of https://github.com/watcha-fr/synapse
Simplify exception handling in is_ascii. (#9985)
We can get away with just catching UnicodeError here. ⋮ +-- ValueError | +-- UnicodeError | +-- UnicodeDecodeError | +-- UnicodeEncodeError | +-- UnicodeTranslateError ⋮ https://docs.python.org/3/library/exceptions.html#exception-hierarchy Signed-off-by: Dan Callahan <danc@element.io>code_spécifique_watcha
parent
498084228b
commit
bd918d874f
@ -0,0 +1 @@ |
||||
Simplify a few helper functions. |
Loading…
Reference in new issue