Skip to content

Commit 316a169

Browse files
Fix: Retry implementation (#128)
1 parent f8063f9 commit 316a169

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

nisystemlink/clients/product/_product_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212

1313
@retry(
14-
when=retry.when.status([408, 429, 502, 503, 504]),
14+
when=retry.when.status(408, 429, 502, 503, 504),
1515
stop=retry.stop.after_attempt(5),
1616
on_exception=retry.CONNECTION_ERROR,
1717
)

nisystemlink/clients/spec/_spec_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212

1313
@retry(
14-
when=retry.when.status([408, 429, 502, 503, 504]),
14+
when=retry.when.status(408, 429, 502, 503, 504),
1515
stop=retry.stop.after_attempt(5),
1616
on_exception=retry.CONNECTION_ERROR,
1717
)

nisystemlink/clients/testmonitor/_test_monitor_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616

1717
@retry(
18-
when=retry.when.status([408, 429, 502, 503, 504]),
18+
when=retry.when.status(408, 429, 502, 503, 504),
1919
stop=retry.stop.after_attempt(5),
2020
on_exception=retry.CONNECTION_ERROR,
2121
)

0 commit comments

Comments
 (0)