You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spot.apache.org by le...@apache.org on 2017/06/21 14:17:00 UTC
[2/3] incubator-spot git commit: Bug fixing for proxy_oa to avoid
halting the process when the FB reputation service is unresponsive
Bug fixing for proxy_oa to avoid halting the process when the FB reputation service is unresponsive
Project: http://git-wip-us.apache.org/repos/asf/incubator-spot/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-spot/commit/730e25f4
Tree: http://git-wip-us.apache.org/repos/asf/incubator-spot/tree/730e25f4
Diff: http://git-wip-us.apache.org/repos/asf/incubator-spot/diff/730e25f4
Branch: refs/heads/SPOT-35_graphql_api
Commit: 730e25f47050f38e0bf875e17de9de7d7201b9f1
Parents: bd5c996
Author: LedaLima <le...@apache.org>
Authored: Fri Jun 9 19:22:53 2017 -0500
Committer: LedaLima <ga...@intel.com>
Committed: Wed Jun 21 09:15:31 2017 -0500
----------------------------------------------------------------------
spot-oa/oa/proxy/proxy_oa.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-spot/blob/730e25f4/spot-oa/oa/proxy/proxy_oa.py
----------------------------------------------------------------------
diff --git a/spot-oa/oa/proxy/proxy_oa.py b/spot-oa/oa/proxy/proxy_oa.py
index 99e4561..e62b3c2 100644
--- a/spot-oa/oa/proxy/proxy_oa.py
+++ b/spot-oa/oa/proxy/proxy_oa.py
@@ -218,7 +218,8 @@ class OA(object):
for result in rep_services_results:
rep_results = {k: "{0}::{1}".format(rep_results.get(k, ""), result.get(k, "")).strip('::') for k in set(rep_results) | set(result)}
- self._proxy_scores = [ conn + [ rep_results[conn[key]] ] for conn in self._proxy_scores ]
+ if rep_results:
+ self._proxy_scores = [ conn + [ rep_results[conn[key]] ] for conn in self._proxy_scores ]
else:
self._proxy_scores = [ conn + [""] for conn in self._proxy_scores ]