From c32b563f5484f98bf07fc24ab267bdcfa9289c89 Mon Sep 17 00:00:00 2001 From: tiger <18297133@qq.com> Date: Fri, 5 May 2023 17:48:02 +0800 Subject: [PATCH] modify framework bug --- troubleshooter/troubleshooter/tracker/tracker.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/troubleshooter/troubleshooter/tracker/tracker.py b/troubleshooter/troubleshooter/tracker/tracker.py index f0a028d..0a6d953 100644 --- a/troubleshooter/troubleshooter/tracker/tracker.py +++ b/troubleshooter/troubleshooter/tracker/tracker.py @@ -78,9 +78,10 @@ class Tracker(Tracer): self.ms_func_blacklist.update(blacklist) self.pop_key_list = ['event_list', 'func_wl', 'path_wl', 'depth', 'max_variable_length', 'check_keyword', - 'path_bl', 'check_mode'] + 'path_bl', 'check_mode', 'framework'] for key in self.pop_key_list: - if kwargs.get(key): + value = kwargs.get(key) + if value is not None: kwargs.pop(key) super(Tracker, self).__init__(depth=self.depth, max_variable_length=self.max_variable_length, **kwargs) -- Gitee