Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a9fa5de commit 558aaffCopy full SHA for 558aaff
plotly/api/v2/utils.py
@@ -114,8 +114,8 @@ def get_headers():
114
def should_retry(exception):
115
if isinstance(exception, exceptions.PlotlyRequestError):
116
if (isinstance(exception.status_code, int) and
117
- 500 <= exception.status_code < 600):
118
- # Retry on 5XX errors.
+ (500 <= exception.status_code < 600 or exception.status_code == 429)):
+ # Retry on 5XX and 429 (image export throttling) errors.
119
return True
120
elif 'Uh oh, an error occurred' in exception.message:
121
0 commit comments