From 957e58a14938f4be8c48bc42c6779041c09be1ec Mon Sep 17 00:00:00 2001 From: Nick Bargnesi Date: Mon, 13 Jan 2025 17:11:40 -0500 Subject: [PATCH] restore behavior defaults to a dictionary Prior to PR #2454, behavioral data defaulted to a dictionary pointing to a list. The PR changed it to an empty list. This is expected to be a dictionary everywhere, and most code expects the "processes" key to exist and either be empty or have process data in it. --- modules/processing/behavior.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/processing/behavior.py b/modules/processing/behavior.py index 88e2294023c..02d598dd55f 100644 --- a/modules/processing/behavior.py +++ b/modules/processing/behavior.py @@ -1182,7 +1182,7 @@ def run(self): @return: results dict. """ - behavior = [] + behavior = {"processes": []} 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()}