diff --git a/offpunk.py b/offpunk.py index fad4bc0..cde1e5d 100755 --- a/offpunk.py +++ b/offpunk.py @@ -951,7 +951,7 @@ class GeminiItem(): self.links = [] print("We return False because path is too long") return False - if os.path.exists(self._cache_path): + if os.path.exists(self._cache_path) and not os.path.isdir(self._cache_path): if validity > 0 : last_modification = self.cache_last_modified() now = time.time()