Skip to content

Commit 506162a

Browse files
authored
Release version 3.8.4, Merge pull request #410 from sentinel-hub/develop
Release version 3.8.4
2 parents c320ff6 + a47ef0b commit 506162a

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

sentinelhub/_version.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
"""Version of the sentinelhub package."""
22

3-
__version__ = "3.8.3"
3+
__version__ = "3.8.4"

sentinelhub/download/rate_limit.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ def register_next(self) -> float:
5151

5252
def update(self, headers: dict) -> None:
5353
"""Update the next possible download time if the service has responded with the rate limit"""
54-
retry_after: float = round(headers.get(self.RETRY_HEADER, 0))
54+
retry_after: float = int(headers.get(self.RETRY_HEADER, 0)) # can be a string representation of a number
5555
retry_after = retry_after / 1000
5656

5757
if retry_after:

tests/download/test_rate_limit.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ def _get_headers(self, is_rate_limited: bool) -> JsonDict:
8282
)
8383
expected_wait_time = max(expected_request_wait_time, expected_units_wait_time)
8484

85-
headers[SentinelHubRateLimit.RETRY_HEADER] = int(1000 * expected_wait_time)
85+
headers[SentinelHubRateLimit.RETRY_HEADER] = str(int(1000 * expected_wait_time))
8686

8787
return headers
8888

0 commit comments

Comments
 (0)