Skip to content

Commit

Permalink
chore: increase sleep time to 20
Browse files Browse the repository at this point in the history
  • Loading branch information
JEPooley committed Nov 2, 2023
1 parent ea0138b commit f6a1831
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 3 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Changelog

## [1.2.9] - 2023/10/04

### Changed
- Increased DownloadsAPI sleep time to 20

## [1.2.8] - 2023/10/04

### Added
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[metadata]
name = osdatahub
version = 1.2.8
version = 1.2.9
author = OS Rapid Prototyping
author_email = [email protected]
classifiers =
Expand Down
2 changes: 1 addition & 1 deletion src/osdatahub/DownloadsAPI/downloads_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ def download(self, output_dir: Union[str, Path], overwrite: bool = False, pbar:

except HTTPError as exc:
if int(exc.response.status_code) == 429:
time.sleep(1)
time.sleep(20)
continue
raise

Expand Down
2 changes: 1 addition & 1 deletion src/osdatahub/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ def set_proxies(proxies):
def get_proxies():
return json.loads(os.environ["_OSDATAHUB_PROXIES"])

__version__ = "1.2.8"
__version__ = "1.2.9"

from osdatahub.extent import Extent
from osdatahub.FeaturesAPI import FeaturesAPI
Expand Down

0 comments on commit f6a1831

Please sign in to comment.