Skip to content

Commit

Permalink
Use None instead of object as dummy client.
Browse files Browse the repository at this point in the history
  • Loading branch information
jayqi committed Apr 1, 2024
1 parent 2bb26ff commit bf5fe37
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cloudpathlib/cloudpath.py
Expand Up @@ -245,7 +245,7 @@ def __del__(self) -> None:
self._handle.close()

# ensure file removed from cache when cloudpath object deleted
client = getattr(self, "client", object)
client = getattr(self, "client", None)
if getattr(client, "file_cache_mode", None) == FileCacheMode.cloudpath_object:
self.clear_cache()

Expand Down

0 comments on commit bf5fe37

Please sign in to comment.