diff options
Diffstat (limited to 'synapse/events')
-rw-r--r-- | synapse/events/presence_router.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/synapse/events/presence_router.py b/synapse/events/presence_router.py index a58f313e8b..98555c8c0c 100644 --- a/synapse/events/presence_router.py +++ b/synapse/events/presence_router.py @@ -147,7 +147,9 @@ class PresenceRouter: # run all the callbacks for get_users_for_states and combine the results for callback in self._get_users_for_states_callbacks: try: - result = await callback(state_updates) + # Note: result is an object here, because we don't trust modules to + # return the types they're supposed to. + result: object = await callback(state_updates) except Exception as e: logger.warning("Failed to run module API callback %s: %s", callback, e) continue |