1
0

Unbreak json parsing.

This commit is contained in:
Jorik Schellekens
2019-07-17 11:52:27 +01:00
parent 6944c994a5
commit d26cbb4e23
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -118,7 +118,7 @@ class DeviceMessageHandler(object):
"message_id": message_id,
"context": json.dumps(context)
if opentracing.whitelisted_homeserver(destination)
else "",
else "{}",
}
opentracing.log_kv({"local_messages": local_messages})
+2 -2
View File
@@ -222,7 +222,7 @@ class DeviceWorkerStore(SQLBaseStore):
"stream_id": stream_id,
"context": query_map[(user_id, device_id)][1]
if opentracing.whitelisted_homeserver(destination)
else "",
else "{}",
}
prev_id = stream_id
@@ -841,7 +841,7 @@ class DeviceStore(DeviceWorkerStore, BackgroundUpdateStore):
"ts": now,
"context": json.dumps(context)
if opentracing.whitelisted_homeserver(destination)
else "",
else "{}",
}
for destination in hosts
for device_id in device_ids