Skip to content

Commit

Permalink
add is not none
Browse files Browse the repository at this point in the history
  • Loading branch information
amyewang committed Oct 30, 2024
1 parent 358ba23 commit 113a4f5
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions gcsfs/core.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Google Cloud Storage pythonic interface
"""

import asyncio
import io
import json
Expand Down Expand Up @@ -142,8 +143,9 @@ def _coalesce_generation(*args):
generations.remove(None)
if len(generations) > 1:
raise ValueError(
"Cannot coalesce generations where more than one are defined,"
" {}".format(generations)
"Cannot coalesce generations where more than one are defined," " {}".format(
generations
)
)
elif len(generations) == 0:
return None
Expand Down Expand Up @@ -285,7 +287,7 @@ def __init__(
version_aware=False,
**kwargs,
):
if cache_timeout:
if cache_timeout is not None:
kwargs["listings_expiry_time"] = cache_timeout
super().__init__(
self,
Expand Down

0 comments on commit 113a4f5

Please sign in to comment.