Skip to content

Commit 76e90dd

Browse files
committed
Small code tidy ups
1 parent 0450d3f commit 76e90dd

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/auto_archiver/core/module.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -214,11 +214,8 @@ def load(self, config) -> BaseModule:
214214

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

0 commit comments

Comments
 (0)