From c7dbf723f5364afd016bacc4029605a7196a3f33 Mon Sep 17 00:00:00 2001 From: doubleqiang Date: Thu, 13 Jun 2019 22:39:58 +0800 Subject: [PATCH] add check ccg and logging info --- persper/analytics/analyzer2.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/persper/analytics/analyzer2.py b/persper/analytics/analyzer2.py index 945ee0807f8..189af7f2899 100644 --- a/persper/analytics/analyzer2.py +++ b/persper/analytics/analyzer2.py @@ -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')