From 654c244f82a2e25e1c67aef7279daf8ec8c3b1de Mon Sep 17 00:00:00 2001 From: jaydee Date: Thu, 19 Mar 2026 21:51:19 +0100 Subject: [PATCH] build --- main.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/main.py b/main.py index 8c53776..e8ab229 100755 --- a/main.py +++ b/main.py @@ -268,7 +268,11 @@ def prompt_missing_args(args_in, defaults_in, fields, action=None,stacks=None): print(por.all_data['stacks'][defaults_in[f"PORTAINER_ENDPOINT_ID".upper()]]['by_name'].keys()) for s in por.all_data['stacks'][defaults_in[f"PORTAINER_ENDPOINT_ID".upper()]]['by_name'].keys(): #print(s) - commands.remove(s) + try: + commands.remove(s) + except ValueError as e: + print(e) + except KeyError: print("No stacks found for endpoint", defaults_in[f"PORTAINER_ENDPOINT_ID".upper()])