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')