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):