Skip to content
Snippets Groups Projects
Commit d7b42afc authored by Paul "LeoNerd" Evans's avatar Paul "LeoNerd" Evans
Browse files

Log a warning if an AS yields an invalid 3PU lookup result

parent 80f4740c
Branches
Tags
No related merge requests found
...@@ -184,7 +184,12 @@ class ApplicationServicesHandler(object): ...@@ -184,7 +184,12 @@ class ApplicationServicesHandler(object):
continue continue
if not isinstance(result, list): if not isinstance(result, list):
continue continue
ret.extend(r for r in result if _is_valid_3pu_result(r)) for r in result:
if _is_valid_3pu_result(r):
ret.append(r)
else:
logger.warn("Application service returned an " +
"invalid result %r", r)
defer.returnValue(ret) defer.returnValue(ret)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment