MatrixSynapse/synapse
Dan Callahan bd918d874f
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>
2021-05-14 10:58:52 +01:00
..
_scripts
api
app
appservice
config Support enabling opentracing by user (#9978) 2021-05-14 10:51:08 +01:00
crypto
events
federation
groups
handlers
http
logging
metrics
module_api
push
replication
res/templates
rest
server_notices
spam_checker_api
state
static
storage
streams
util Simplify exception handling in is_ascii. (#9985) 2021-05-14 10:58:52 +01:00
__init__.py
event_auth.py
notifier.py
python_dependencies.py
server.py
types.py
visibility.py