mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2024-12-18 23:14:18 -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 = []
|
ret = []
|
||||||
for (success, result) in results:
|
for (success, result) in results:
|
||||||
if not success:
|
if not success:
|
||||||
|
logger.warn("Application service failed %r", result)
|
||||||
continue
|
continue
|
||||||
if not isinstance(result, list):
|
if not isinstance(result, list):
|
||||||
|
logger.warn(
|
||||||
|
"Application service returned an invalid response %r", result
|
||||||
|
)
|
||||||
continue
|
continue
|
||||||
for r in result:
|
for r in result:
|
||||||
if _is_valid_3pentity_result(r, field=required_field):
|
if _is_valid_3pentity_result(r, field=required_field):
|
||||||
ret.append(r)
|
ret.append(r)
|
||||||
else:
|
else:
|
||||||
logger.warn("Application service returned an " +
|
logger.warn(
|
||||||
"invalid result %r", r)
|
"Application service returned an invalid result %r", r
|
||||||
|
)
|
||||||
|
|
||||||
defer.returnValue(ret)
|
defer.returnValue(ret)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user