Skip to content

Commit ce1f379

Browse files
authored
Merge pull request #156 from intezer/feature/max-retry
feat: add max retry
2 parents 140e0fb + 227dedb commit ce1f379

3 files changed

Lines changed: 8 additions & 2 deletions

File tree

CHANGES

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
1.21.14
2+
-------
3+
- Add max retry
4+
15
1.21.13
26
-------
37
- Send `exact_match` parameter of `UrlAnalysis.from_latest_analysis` to the backend

intezer_sdk/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = '1.21.13'
1+
__version__ = '1.21.14'

intezer_sdk/api.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,14 +235,16 @@ def __init__(self,
235235
on_premise_version: OnPremiseVersion = None,
236236
user_agent: str = None,
237237
proxies: Dict[str, str] = None,
238-
timeout_in_seconds: Optional[int] = None):
238+
timeout_in_seconds: Optional[int] = None,
239+
max_retry:int = 3):
239240
super().__init__(api_key=api_key,
240241
base_url=base_url,
241242
verify_ssl=verify_ssl,
242243
user_agent=user_agent,
243244
api_version=api_version,
244245
on_premise_version=on_premise_version,
245246
proxies=proxies,
247+
max_retry=max_retry,
246248
timeout_in_seconds=timeout_in_seconds)
247249

248250
@deprecated('IntezerApi is deprecated and will be removed in the future')

0 commit comments

Comments
 (0)