diff options
author | Neil Johnson <neil@fragile.org.uk> | 2018-03-20 14:25:31 +0000 |
---|---|---|
committer | Neil Johnson <neil@fragile.org.uk> | 2018-03-20 14:25:31 +0000 |
commit | e66fbcbb02d98a0d165f3c5d4642d26add233562 (patch) | |
tree | 01b5c79c3951f31d5826a852f49aa312d8e47604 /synapse/handlers/message.py | |
parent | Update __init__.py (diff) | |
parent | Merge pull request #3005 from matrix-org/erikj/fix_cache_size (diff) | |
download | synapse-e66fbcbb02d98a0d165f3c5d4642d26add233562.tar.xz |
fix merge conflicts
Diffstat (limited to 'synapse/handlers/message.py')
-rw-r--r-- | synapse/handlers/message.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/synapse/handlers/message.py b/synapse/handlers/message.py index 4f97c8db79..5a8ddc253e 100644 --- a/synapse/handlers/message.py +++ b/synapse/handlers/message.py @@ -38,7 +38,7 @@ from canonicaljson import encode_canonical_json import logging import random -import ujson +import simplejson logger = logging.getLogger(__name__) @@ -678,8 +678,8 @@ class EventCreationHandler(object): # Ensure that we can round trip before trying to persist in db try: - dump = ujson.dumps(unfreeze(event.content)) - ujson.loads(dump) + dump = simplejson.dumps(unfreeze(event.content)) + simplejson.loads(dump) except Exception: logger.exception("Failed to encode content: %r", event.content) raise |