Update minimal braintree version
We need at least 3.38.0 to manage Dispute and have TooManyRequestsError. issue11734 review423961003
This commit is contained in:
1 parent
c8743054bd
commit
3388fff4b9
2 files changed
+8
-2
No files matched your search
+7
-1
@@ -5,10 +5,16 @@ import urllib
|
||||
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
|
||||
|
||||
@@ -61,7 +61,7 @@ else:
|
||||
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))
|
||||
|
||||
Reference in new issue
Block a user