From 2d5689ef661100cf67f3f481d2514c33da5418b3 Mon Sep 17 00:00:00 2001 From: doubleqiang Date: Thu, 13 Jun 2019 22:06:28 +0800 Subject: [PATCH] fix retry no catch except --- persper/analytics/analyzer2.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/persper/analytics/analyzer2.py b/persper/analytics/analyzer2.py index ee272be3c20..945ee0807f8 100644 --- a/persper/analytics/analyzer2.py +++ b/persper/analytics/analyzer2.py @@ -115,8 +115,11 @@ def graph(self): if self._call_commit_graph is None: # retry 10 times when get graph from graph server for i in range(10): - ccg = self._graphServer.get_graph() - break + try: + ccg = self._graphServer.get_graph() + break + except Exception: + continue else: raise Exception('get graph is failed') self._call_commit_graph = ccg