From 25225a452c162387832f52559fb1159f3658065d Mon Sep 17 00:00:00 2001 From: Owen Date: Thu, 30 Oct 2025 21:18:26 -0700 Subject: [PATCH] Return instead of throwing error --- server/lib/blueprints/applyNewtDockerBlueprint.ts | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/server/lib/blueprints/applyNewtDockerBlueprint.ts b/server/lib/blueprints/applyNewtDockerBlueprint.ts index 5a80bb66..7d3d395d 100644 --- a/server/lib/blueprints/applyNewtDockerBlueprint.ts +++ b/server/lib/blueprints/applyNewtDockerBlueprint.ts @@ -31,19 +31,15 @@ export async function applyNewtDockerBlueprint( // make sure this is not an empty object if (isEmptyObject(blueprint)) { - throw new Error("No valid blueprint data found in container labels"); + return; } if (isEmptyObject(blueprint["proxy-resources"])) { - throw new Error( - "No proxy-resources found in blueprint data from container labels" - ); + return; } if (isEmptyObject(blueprint["client-resources"])) { - throw new Error( - "No client-resources found in blueprint data from container labels" - ); + return; } // Update the blueprint in the database @@ -79,4 +75,4 @@ function isEmptyObject(obj: any) { return true; } return Object.keys(obj).length === 0 && obj.constructor === Object; -} \ No newline at end of file +}