From 785ca1b2906809d3279f8fff080469c9e977cb04 Mon Sep 17 00:00:00 2001 From: Markus Zolliker Date: Wed, 8 Nov 2023 15:00:14 +0100 Subject: [PATCH] summarize_server_state: make more robust an error may raise when a sea config file is deleted, but still active on a sea server --- frappyman.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frappyman.py b/frappyman.py index 23bf727..538e860 100644 --- a/frappyman.py +++ b/frappyman.py @@ -104,7 +104,7 @@ def summarize_server_state(givencfgs, ourcfgs, sealist, sea_info, strict=False): for seacfg, seacfgfile, key in zip_longest(sealist, seacfgfiles, ('main', 'stick')): if not seacfg: continue - available = sea_info[seacfg + SEAEXT.get(key, '.addon')] + available = sea_info.get(seacfg + SEAEXT.get(key, '.addon')) if available: proposed = list(available)[0] if len(available) == 1 else None if not proposed: