Skip to content

Commit

Permalink
Merge branch 'optimize-call-graph' into 'develop'
Browse files Browse the repository at this point in the history
fix retry no catch except

See merge request persper/code-analytics!124
  • Loading branch information
merico-test committed Jun 13, 2019
2 parents 78cd621 + 2d5689e commit 6d007dc
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 6d007dc

Please sign in to comment.