diff options
author | Dan Callahan <danc@element.io> | 2021-05-14 10:58:52 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-14 10:58:52 +0100 |
commit | bd918d874f4eb459b9c2f9af6e8e994b6b19d264 (patch) | |
tree | dcd02db35a185356070ec7340def13c02dea0dca /changelog.d | |
parent | Use Python's secrets module instead of random (#9984) (diff) | |
download | synapse-bd918d874f4eb459b9c2f9af6e8e994b6b19d264.tar.xz |
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>
Diffstat (limited to 'changelog.d')
-rw-r--r-- | changelog.d/9985.misc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/changelog.d/9985.misc b/changelog.d/9985.misc new file mode 100644 index 0000000000..97bd747f26 --- /dev/null +++ b/changelog.d/9985.misc @@ -0,0 +1 @@ +Simplify a few helper functions. |