Skip to content

Commit

Permalink
Fix _parse dir for none skip_dirs
Browse files Browse the repository at this point in the history
  • Loading branch information
aulemahal committed Oct 21, 2024
1 parent b4dc0de commit 531a09d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/xscen/catutils.py
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ def _parse_dir( # noqa: C901
parsed = []

root = Path(root)
if any([(skd in root.parents) or (skd == root) for skd in skip_dirs]):
if any([(skd in root.parents) or (skd == root) for skd in (skip_dirs or [])]):
logger.debug("Skipping %s", root)
return parsed

Expand Down

0 comments on commit 531a09d

Please sign in to comment.