From acd785061c13f42b4b340aac59d1e1440074c98f Mon Sep 17 00:00:00 2001 From: Markus Zolliker Date: Tue, 8 Jul 2025 11:28:01 +0200 Subject: [PATCH] FrappyMananger.get_cfg_file: service=None as argument returns None --- frappyman.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/frappyman.py b/frappyman.py index 66446b4..bf00622 100644 --- a/frappyman.py +++ b/frappyman.py @@ -240,6 +240,8 @@ class FrappyManager(ServiceManager): raise FileNotFoundError(f'{cfgfile} not found') def get_cfg_file(self, ins, service, cfg, lazy=False): + if service is None: + return None filenames = [f'{cfg}_cfg.py'] if lazy: filenames.extend([f'{cfg}.py', cfg]) @@ -248,7 +250,6 @@ class FrappyManager(ServiceManager): cfgfile = join(cfgdir, filename) if exists(cfgfile): return cfgfile - print('NOT FOUND', cfg, self.config_dirs(ins, service), filenames) return None def is_cfg(self, ins, service, cfg):