Skip to content

Commit 40f9ac3

Browse files
committed
fix
1 parent ae4a1ce commit 40f9ac3

8 files changed

Lines changed: 2 additions & 1 deletion
-41.4 KB
Binary file not shown.
-41.4 KB
Binary file not shown.
-40.4 KB
Binary file not shown.
-41.4 KB
Binary file not shown.
-41.4 KB
Binary file not shown.
-41.4 KB
Binary file not shown.

payment.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,8 @@ def __init__(self, timeout=(5, 15), **kwargs):
5858
super().__init__(**kwargs)
5959

6060
def send(self, request, **kwargs):
61-
kwargs.setdefault('timeout', self.timeout)
61+
if kwargs.get('timeout') is None:
62+
kwargs['timeout'] = self.timeout
6263
return super().send(request, **kwargs)
6364

6465
adapter = TimeoutAdapter(timeout=(5, 15)) # connect: 5s, read: 15s
-38.6 KB
Binary file not shown.

0 commit comments

Comments
 (0)