Skip to content

Commit

Permalink
add check ccg and logging info
Browse files Browse the repository at this point in the history
  • Loading branch information
merico-test committed Jun 13, 2019
1 parent 6d007dc commit c7dbf72
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion persper/analytics/analyzer2.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,11 @@ def graph(self):
for i in range(10):
try:
ccg = self._graphServer.get_graph()
break
if ccg is not None:
break
except Exception:
logging.info('get graph failed:{}'.format(i))
time.sleep(1)
continue
else:
raise Exception('get graph is failed')
Expand Down

0 comments on commit c7dbf72

Please sign in to comment.