Small code tidy ups

pull/276/head
Patrick Robertson 2025-03-26 15:34:33 +04:00
rodzic 0450d3fcb9
commit 76e90dd23a
1 zmienionych plików z 2 dodań i 5 usunięć

Wyświetl plik

@ -214,11 +214,8 @@ class LazyBaseModule:
# check external dependencies are installed # check external dependencies are installed
def check_deps(deps, check): def check_deps(deps, check):
for dep in deps: for dep in filter(lambda d: len(d.strip()), deps):
if not len(dep): if not check(dep.strip()):
# clear out any empty strings that a user may have erroneously added
continue
if not check(dep):
logger.error( logger.error(
f"Module '{self.name}' requires external dependency '{dep}' which is not available/setup. \ f"Module '{self.name}' requires external dependency '{dep}' which is not available/setup. \
Have you installed the required dependencies for the '{self.name}' module? See the documentation for more information." Have you installed the required dependencies for the '{self.name}' module? See the documentation for more information."