python-stdnum branch master updated. 1.20-10-g6cbb9bc
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
python-stdnum branch master updated. 1.20-10-g6cbb9bc
- From: Commits of the python-stdnum project <python-stdnum-commits [at] lists.arthurdejong.org>
- To: python-stdnum-commits [at] lists.arthurdejong.org
- Reply-to: python-stdnum-users [at] lists.arthurdejong.org, python-stdnum-commits [at] lists.arthurdejong.org
- Subject: python-stdnum branch master updated. 1.20-10-g6cbb9bc
- Date: Sat, 27 Jul 2024 15:04:19 +0200 (CEST)
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "python-stdnum".
The branch, master has been updated
via 6cbb9bc09c25fbda7a032521bc57b44e0ce18ec4 (commit)
from af3a728f6f3533da7ad398614163cc0f776dcb95 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
https://arthurdejong.org/git/python-stdnum/commit/?id=6cbb9bc09c25fbda7a032521bc57b44e0ce18ec4
commit 6cbb9bc09c25fbda7a032521bc57b44e0ce18ec4
Author: Joris Makauskis <jmak@odoo.com>
Date: Thu Jul 4 08:48:46 2024 +0200
Fix zeep client timeout parameter
The timeout parameter of the zeep transport class is not responsable for
POST/GET timeouts. The operational_timeout parameter should be used for
that.
See https://github.com/mvantellingen/python-zeep/issues/140
Closes https://github.com/arthurdejong/python-stdnum/issues/444
Closes https://github.com/arthurdejong/python-stdnum/pull/445
diff --git a/stdnum/util.py b/stdnum/util.py
index 11b58dd..4582242 100644
--- a/stdnum/util.py
+++ b/stdnum/util.py
@@ -253,7 +253,7 @@ def get_soap_client(wsdlurl, timeout=30): # pragma: no
cover (not part of norma
# try zeep first
try:
from zeep.transports import Transport
- transport = Transport(timeout=timeout)
+ transport = Transport(operation_timeout=timeout, timeout=timeout)
from zeep import CachingClient
client = CachingClient(wsdlurl, transport=transport).service
except ImportError:
-----------------------------------------------------------------------
Summary of changes:
stdnum/util.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
hooks/post-receive
--
python-stdnum
- python-stdnum branch master updated. 1.20-10-g6cbb9bc,
Commits of the python-stdnum project