Skip to content

Commit 094ae4c

Browse files
committed
fix: construct HttpAdapter w/o timeout
1 parent 7529e91 commit 094ae4c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

utils/csrt_session.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
class TimeoutHTTPAdapter(HTTPAdapter):
1414
def __init__(self, *args, **kwargs):
1515
timeout = kwargs.get("timeout", 30)
16+
if "timeout" in kwargs:
17+
del kwargs["timeout"]
1618
super().__init__(*args, **kwargs)
1719
self.timeout = timeout
1820

0 commit comments

Comments
 (0)