Add missing consumeErrors

In general we want defer.gatherResults to consumeErrors, rather than having
exceptions hanging around and getting logged as CRITICAL unhandled errors.
This commit is contained in:
Richard van der Hoff 2018-04-27 11:16:28 +01:00
parent 0ced8b5b47
commit 605defb9e4
3 changed files with 9 additions and 5 deletions

View file

@ -202,7 +202,7 @@ class StreamWorkerStore(EventsWorkerStore, SQLBaseStore):
room_id, from_key, to_key, limit, order=order,
)
for room_id in rm_ids
]))
], consumeErrors=True))
results.update(dict(zip(rm_ids, res)))
defer.returnValue(results)