changeset 3e154c3ca24a in modules/account_payment_braintree:default
details:
https://hg.tryton.org/modules/account_payment_braintree?cmd=changeset&node=3e154c3ca24a
description:
Update minimal braintree version
We need at least 3.38.0 to manage Dispute and have TooManyRequestsError.
issue11734
review423961003
diffstat:
account.py | 8 +++++++-
setup.py | 2 +-
2 files changed, 8 insertions(+), 2 deletions(-)
diffs (33 lines):
diff -r 4a92175f38b0 -r 3e154c3ca24a account.py
--- a/account.py Mon Sep 19 21:25:55 2022 +0200
+++ b/account.py Sun Oct 09 13:15:41 2022 +0200
@@ -5,10 +5,16 @@
import uuid
import braintree
-from braintree.exceptions import GatewayTimeoutError, TooManyRequestsError
+from braintree.exceptions import TooManyRequestsError
from braintree.exceptions.braintree_error import BraintreeError
from sql import Literal
+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 4a92175f38b0 -r 3e154c3ca24a setup.py
--- a/setup.py Mon Sep 19 21:25:55 2022 +0200
+++ b/setup.py Sun Oct 09 13:15:41 2022 +0200
@@ -61,7 +61,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))