From 3c4ca95e20e0f88ed926b3994afae9f3abc9af01 Mon Sep 17 00:00:00 2001 From: Mansi Sharma <77758170+mansishr@users.noreply.github.com> Date: Mon, 12 Aug 2024 09:50:26 -0700 Subject: [PATCH] Update export.py for coverity fix #441136 --- openfl/experimental/workspace_export/export.py | 1 + 1 file changed, 1 insertion(+) diff --git a/openfl/experimental/workspace_export/export.py b/openfl/experimental/workspace_export/export.py index 4225c81848..aff53a59cd 100644 --- a/openfl/experimental/workspace_export/export.py +++ b/openfl/experimental/workspace_export/export.py @@ -303,6 +303,7 @@ def generate_plan_yaml(self): plan = self.created_workspace_path.joinpath("plan", "plan.yaml").resolve() data = self.__read_yaml(plan) if data is None: + data = {} data["federated_flow"] = {"settings": {}, "template": ""} data["federated_flow"]["template"] = f"src.{self.script_name}.{self.flow_class_name}"