Skip to content

Commit

Permalink
2.1.11.post1
Browse files Browse the repository at this point in the history
  • Loading branch information
DogsTailFarmer committed Apr 25, 2024
1 parent f23d492 commit f73b3c0
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 2.1.11.post1 2024-04-xx
### Update
* `send_request`: controlling rate_limit by changing exception handling

## 2.1.11 2024-04-19
### Update
* Some minor improvements
Expand Down
2 changes: 1 addition & 1 deletion exchanges_wrapper/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
__contact__ = "https://github.com/DogsTailFarmer"
__email__ = "[email protected]"
__credits__ = ["https://github.com/DanyaSWorlD"]
__version__ = "2.1.11"
__version__ = "2.1.11.post1"

from pathlib import Path
import shutil
Expand Down
2 changes: 1 addition & 1 deletion exchanges_wrapper/exch_srv.py
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ async def send_request(self, client_method_name, request, rate_limit=False, **kw
except asyncio.exceptions.TimeoutError:
msg = f"{msg_header} timeout error"
logger.warning(msg)
raise GRPCError(status=Status.OUT_OF_RANGE, message=msg)
raise GRPCError(status=Status.RESOURCE_EXHAUSTED, message=msg)
except (errors.RateLimitReached, errors.QueryCanceled) as ex:
Martin.rate_limit_reached_time = time.time()
msg = f"{msg_header} RateLimitReached: {ex}"
Expand Down

0 comments on commit f73b3c0

Please sign in to comment.