Skip to content

Commit 8867c3b

Browse files
committed
cast 'timeout' to float
The 'timeout' value is often given as an integer, but the lib expects a float. This casts the 'timeout' parameter as a float so callers do not have to bother.
1 parent 114f97c commit 8867c3b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ubersmith_client/ubersmith_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ def __init__(self, url, user, password, timeout, use_http_get):
1919
self.url = url
2020
self.user = user
2121
self.password = password
22-
self.timeout = timeout
22+
self.timeout = float(timeout)
2323
self.ubersmith_request = UbersmithRequestGet if use_http_get else UbersmithRequestPost
2424

2525
def __getattr__(self, module):

0 commit comments

Comments
 (0)