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 a9f0c95 commit 556ef45Copy full SHA for 556ef45
plotly/api/v2/utils.py
@@ -107,9 +107,10 @@ def validate_response(response):
107
if not message:
108
message = content if content else 'No Content'
109
110
- if not response.history[0].url.startswith('https:'):
111
- raise exceptions.PlotlyRequestError(HTTP_ERROR_MESSAGE,
112
- status_code, content)
+ if len(response.history) > 0:
+ if not response.history[0].url.startswith('https:'):
+ raise exceptions.PlotlyRequestError(HTTP_ERROR_MESSAGE,
113
+ status_code, content)
114
115
raise exceptions.PlotlyRequestError(message, status_code, content)
116
0 commit comments