mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2024-12-18 17:24:19 -05:00
More warnings about invalid results from AS 3PE query
This commit is contained in:
parent
b515f844ee
commit
697872cf08
@ -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 New Issue
Block a user