Skip to content

Commit

Permalink
fix retry no catch except
Browse files Browse the repository at this point in the history
  • Loading branch information
merico-test committed Jun 13, 2019
1 parent 78cd621 commit 2d5689e
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions persper/analytics/analyzer2.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2d5689e

Please sign in to comment.