changeset cdb015da70dc in modules/account_payment_braintree:6.2 details: https://hg.tryton.org/modules/account_payment_braintree?cmd=changeset&node=cdb015da70dc description: Update minimal braintree version
We need at least 3.38.0 to manage Dispute and have TooManyRequestsError. issue11734 review423961003 (grafted from 3e154c3ca24a3125e6ffbd0ee4953851dce2232d) diffstat: account.py | 8 +++++++- setup.py | 2 +- 2 files changed, 8 insertions(+), 2 deletions(-) diffs (32 lines): diff -r 2c1866ae3591 -r cdb015da70dc account.py --- a/account.py Wed Aug 17 23:51:16 2022 +0200 +++ b/account.py Sun Oct 09 13:15:41 2022 +0200 @@ -5,9 +5,15 @@ import uuid import braintree -from braintree.exceptions import TooManyRequestsError, GatewayTimeoutError +from braintree.exceptions import TooManyRequestsError from braintree.exceptions.braintree_error import BraintreeError +try: + from braintree.exceptions import GatewayTimeoutError +except ImportError: + class GatewayTimeoutError(Exception): + pass + from trytond.cache import Cache from trytond.config import config from trytond.i18n import gettext diff -r 2c1866ae3591 -r cdb015da70dc setup.py --- a/setup.py Wed Aug 17 23:51:16 2022 +0200 +++ b/setup.py Sun Oct 09 13:15:41 2022 +0200 @@ -60,7 +60,7 @@ if local_version: version += '+' + '.'.join(local_version) -requires = ['braintree >= 3.24.0', 'werkzeug'] +requires = ['braintree >= 3.38.0', 'werkzeug'] for dep in info.get('depends', []): if not re.match(r'(ir|res)(\W|$)', dep): requires.append(get_require_version('trytond_%s' % dep))