summary refs log tree commit diff
diff options
context:
space:
mode:
authorJorik Schellekens <joriks@matrix.org>2019-09-05 15:06:13 +0100
committerJorik Schellekens <joriks@matrix.org>2019-09-05 15:06:13 +0100
commit5ade977d0836a9d7615b4e8cc578c48a26198ee8 (patch)
tree2d180090a24309cb5084cbf0c85769fd4f367e15
parentnewsfile (diff)
downloadsynapse-5ade977d0836a9d7615b4e8cc578c48a26198ee8.tar.xz
Opentracing context cannot be none
-rw-r--r--synapse/storage/devices.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/storage/devices.py b/synapse/storage/devices.py
index 41f62828bd..79a58df591 100644
--- a/synapse/storage/devices.py
+++ b/synapse/storage/devices.py
@@ -856,7 +856,7 @@ class DeviceStore(DeviceWorkerStore, BackgroundUpdateStore):
                     "ts": now,
                     "opentracing_context": json.dumps(context)
                     if whitelisted_homeserver(destination)
-                    else None,
+                    else "{}",
                 }
                 for destination in hosts
                 for device_id in device_ids