Skip to content

Commit

Permalink
fix verbose
Browse files Browse the repository at this point in the history
  • Loading branch information
bw2 committed Sep 1, 2024
1 parent 8c0d431 commit 27c905c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions step_pipeline/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ def _path_exists__cached(path, only_check_the_cache=False, verbose=False):
raise ValueError(f"Unexpected path type {type(path)}: {path}")

if path in PATH_EXISTS_CACHE:
if args.verbose:
if verbose:
if PATH_EXISTS_CACHE[path]:
print(f"Path exists (cached): {path}")
else:
Expand All @@ -127,7 +127,7 @@ def _path_exists__cached(path, only_check_the_cache=False, verbose=False):
return PATH_EXISTS_CACHE[path]

elif only_check_the_cache:
if args.verbose:
if verbose:
print(f"Missing path (only-checked-in-cache): {path}")
# if we're only checking the cache and the path isn't in the cache, then we can return False
return False
Expand Down

0 comments on commit 27c905c

Please sign in to comment.