Unverified Commit a9f788e0 authored by Jose Borreguero's avatar Jose Borreguero Committed by GitHub
Browse files

fix Path method

parent add57d10
......@@ -276,7 +276,7 @@ class SNSPowderReduction(DistributedDataProcessorAlgorithm):
# The provided cache directory does not exist
cache_dir = self.getProperty('CacheDir').value # absolute or relative path, as a string
if bool(cache_dir) and Path(cache_dir).exist() is False:
if bool(cache_dir) and Path(cache_dir).exists() is False:
issues['CacheDir'] = f'Directory {cache_dir} does not exist'
# We cannot clear the cache if property "CacheDir" has not been set
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment