Skip to content

Commit f17e2ef

Browse files
authored
Merge pull request #93 from atlassian-labs/fix-session
fix: construct HttpAdapter w/o timeout
2 parents 3cffad7 + 094ae4c commit f17e2ef

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)