py-near 1.1.7__py3-none-any.whl → 1.1.8__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
py_near/account.py CHANGED
@@ -16,7 +16,7 @@ from py_near import utils
16
16
  from py_near.dapps.ft.async_client import FT
17
17
  from py_near.dapps.phone.async_client import Phone
18
18
  from py_near.dapps.staking.async_client import Staking
19
- from py_near.exceptions.provider import RpcTimeoutError
19
+ from py_near.exceptions.provider import RpcTimeoutError, InternalError
20
20
  from py_near.models import (
21
21
  TransactionResult,
22
22
  ViewFunctionResult,
@@ -148,7 +148,10 @@ class Account(object):
148
148
  except RpcTimeoutError:
149
149
  for _ in range(constants.TIMEOUT_WAIT_RPC // 3):
150
150
  await asyncio.sleep(3)
151
- result = await self._provider.get_tx(trx_hash, receiver_id)
151
+ try:
152
+ result = await self._provider.get_tx(trx_hash, receiver_id)
153
+ except InternalError:
154
+ continue
152
155
  if result:
153
156
  return result
154
157
  raise RpcTimeoutError("Transaction not found")
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: py-near
3
- Version: 1.1.7
3
+ Version: 1.1.8
4
4
  Summary: Pretty simple and fully asynchronous framework for working with NEAR blockchain
5
5
  Author: pvolnov
6
6
  Author-email: petr@herewallet.app
@@ -13,7 +13,7 @@ Classifier: Programming Language :: Python :: 3.10
13
13
  Classifier: Programming Language :: Python :: 3.11
14
14
  Requires-Dist: aiohttp (>=3.7.4,<4.0.0)
15
15
  Requires-Dist: ed25519 (>=1.5,<2.0)
16
- Requires-Dist: py-near-primitives (>=0.2.1,<0.3.0)
16
+ Requires-Dist: py-near-primitives (>=0.2.3,<0.3.0)
17
17
  Description-Content-Type: text/markdown
18
18
 
19
19
  # py-near
@@ -1,5 +1,5 @@
1
1
  py_near/__init__.py,sha256=t5fAxjaU8dN8xpQR2vz0ZGhfTkdVy2RCbkhJhZFglk4,50
2
- py_near/account.py,sha256=FYnGZK1rLhxE-hSzYThK0yfpE_pYIvdmryxU650Xmvg,16648
2
+ py_near/account.py,sha256=uCqR24QZ0AEqqvxYgRmMQa35UMWTxzbH2G-HB-K5EVU,16767
3
3
  py_near/constants.py,sha256=inaWIuwmF1EB5JSB0ynnZY5rKY_QsxhF9KuCOhPsM6k,164
4
4
  py_near/dapps/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
5
5
  py_near/dapps/core.py,sha256=LtN9aW2gw2mvEdhzQcQJIidtjv-XL1xjb0LK8DzqtqE,231
@@ -27,7 +27,7 @@ py_near/models.py,sha256=QKQxL1wkTKZ4MWb5dprJZYalzrvd7bHSXC3WeBujuWE,9426
27
27
  py_near/providers.py,sha256=gI_xYFr_3xMleyDkI_3LpkcW4-yaDy5QSRzZKe3FkNM,8394
28
28
  py_near/transactions.py,sha256=QAXegv2JpKISk92NaChtIH6-QPHrcWbrwdKH_lH4TsU,3186
29
29
  py_near/utils.py,sha256=FirRH93ydH1cwjn0-sNrZeIn3BRD6QHedrP2VkAdJ6g,126
30
- py_near-1.1.7.dist-info/LICENSE,sha256=I_GOA9xJ35FiL-KnYXZJdATkbO2KcV2dK2enRGVxzKM,1023
31
- py_near-1.1.7.dist-info/METADATA,sha256=4DKDgC8HX6ayN73Ni8l7RqAyKye1lHdUrmPLKUpbWBU,4661
32
- py_near-1.1.7.dist-info/WHEEL,sha256=Zb28QaM1gQi8f4VCBhsUklF61CTlNYfs9YAZn-TOGFk,88
33
- py_near-1.1.7.dist-info/RECORD,,
30
+ py_near-1.1.8.dist-info/LICENSE,sha256=I_GOA9xJ35FiL-KnYXZJdATkbO2KcV2dK2enRGVxzKM,1023
31
+ py_near-1.1.8.dist-info/METADATA,sha256=E2PQwhLLx5lC0MPOSIg5je_I5y4MAE0oUY0rM7RXwpQ,4661
32
+ py_near-1.1.8.dist-info/WHEEL,sha256=Zb28QaM1gQi8f4VCBhsUklF61CTlNYfs9YAZn-TOGFk,88
33
+ py_near-1.1.8.dist-info/RECORD,,