diff options
author | Mark Haines <mark.haines@matrix.org> | 2015-08-28 11:15:27 +0100 |
---|---|---|
committer | Mark Haines <mark.haines@matrix.org> | 2015-08-28 11:15:27 +0100 |
commit | a7122692d972ce3ac787d4ecf1449f87f33e83cf (patch) | |
tree | 81ece372c764d775d1d10cc581100de006456d67 /synapse/util/stringutils.py | |
parent | Merge pull request #254 from matrix-org/markjh/tox_setuptools (diff) | |
parent | Bump version and changelog (diff) | |
download | synapse-a7122692d972ce3ac787d4ecf1449f87f33e83cf.tar.xz |
Merge branch 'release-v0.10.0' into develop
Conflicts: synapse/handlers/auth.py synapse/python_dependencies.py synapse/rest/client/v1/login.py
Diffstat (limited to 'synapse/util/stringutils.py')
-rw-r--r-- | synapse/util/stringutils.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/synapse/util/stringutils.py b/synapse/util/stringutils.py index 7a1e96af37..f3a36340e4 100644 --- a/synapse/util/stringutils.py +++ b/synapse/util/stringutils.py @@ -38,6 +38,8 @@ def random_string_with_symbols(length): def is_ascii(s): try: s.encode("ascii") + except UnicodeEncodeError: + return False except UnicodeDecodeError: return False else: |