mirror of
https://github.com/element-hq/synapse
synced 2024-08-20 02:40:22 +00:00
More warnings about invalid results from AS 3PE query
This commit is contained in:
parent
b515f844ee
commit
697872cf08
1 changed files with 7 additions and 2 deletions
|
@ -187,15 +187,20 @@ class ApplicationServicesHandler(object):
|
|||
ret = []
|
||||
for (success, result) in results:
|
||||
if not success:
|
||||
logger.warn("Application service failed %r", result)
|
||||
continue
|
||||
if not isinstance(result, list):
|
||||
logger.warn(
|
||||
"Application service returned an invalid response %r", result
|
||||
)
|
||||
continue
|
||||
for r in result:
|
||||
if _is_valid_3pentity_result(r, field=required_field):
|
||||
ret.append(r)
|
||||
else:
|
||||
logger.warn("Application service returned an " +
|
||||
"invalid result %r", r)
|
||||
logger.warn(
|
||||
"Application service returned an invalid result %r", r
|
||||
)
|
||||
|
||||
defer.returnValue(ret)
|
||||
|
||||
|
|
Loading…
Reference in a new issue