Opentracing context cannot be none

This commit is contained in:
Jorik Schellekens 2019-09-05 15:06:13 +01:00
parent 93bc9d73bf
commit 5ade977d08

View File

@ -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