From 745413acdb1c1329b77b8068f3678df1789a2b45 Mon Sep 17 00:00:00 2001 From: meisnate12 Date: Mon, 12 Dec 2022 16:16:52 -0500 Subject: [PATCH] [51] Fixes #1224 --- VERSION | 2 +- modules/config.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/VERSION b/VERSION index 0b405b30..5f5d000f 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.18.0-develop50 +1.18.0-develop51 diff --git a/modules/config.py b/modules/config.py index 5082d9fa..ea4721bd 100644 --- a/modules/config.py +++ b/modules/config.py @@ -803,8 +803,6 @@ class ConfigFile: if not lib["overlay_path"]: raise Failed("Config Error: overlay_path attribute is blank") files = util.load_files(lib["overlay_path"], "overlay_path", lib_vars=lib_vars) - if not files: - raise Failed("Config Error: No Paths Found for overlay_path") for file in util.get_list(lib["overlay_path"], split=False): if isinstance(file, dict): if ("remove_overlays" in file and file["remove_overlays"] is True) \ @@ -835,6 +833,8 @@ class ConfigFile: err = e if err: raise NotScheduled(f"Overlay Schedule:{err}\n\nOverlays not scheduled to run") + if not files and params["remove_overlays"] is False and params["reset_overlays"] is False: + raise Failed("Config Error: No Paths Found for overlay_path") params["overlay_path"] = files except NotScheduled as e: logger.info("")