Skip to content

Commit 5520308

Browse files
typecheck int -> float
1 parent 77ef5d6 commit 5520308

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/snowflake/connector/crl.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ def from_connection(cls, sf_connection) -> CRLConfig:
109109
cache_validity_time = (
110110
cls.cache_validity_time
111111
if sf_connection.crl_cache_validity_hours is None
112-
else timedelta(hours=int(sf_connection.crl_cache_validity_hours))
112+
else timedelta(hours=float(sf_connection.crl_cache_validity_hours))
113113
)
114114
crl_cache_dir = (
115115
cls.crl_cache_dir

0 commit comments

Comments
 (0)