diff --git a/modules/processing/behavior.py b/modules/processing/behavior.py index bb47dc68cf2..b290a3730e3 100644 --- a/modules/processing/behavior.py +++ b/modules/processing/behavior.py @@ -1183,8 +1183,6 @@ def run(self): """ behavior = [] - print(path_exists(self.logs_path), len(os.listdir(self.logs_path))) - breakpoint() if path_exists(self.logs_path) and len(os.listdir(self.logs_path)) != 0: behavior = {"processes": Processes(self.logs_path, self.task, self.options).run()} @@ -1225,10 +1223,8 @@ def run(self): return behavior with open(json_path) as f: - details = json.load(f) - import code - - code.interact(local=dict(locals(), **globals())) - behavior = details.get("behavior", []) - self.results["info"] = details.get("info", []) + try: + behavior = json.load(f).get("behavior", []) + except Exception as e: + log.error("Behavior. Can't load json: %s", str(e)) return behavior