We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 19162af commit 35f3bcdCopy full SHA for 35f3bcd
plotly/plotly/plotly.py
@@ -1318,9 +1318,11 @@ def response_handler(cls, response):
1318
errors = parsed_response.get('errors')
1319
message = errors[-1]['message']
1320
except:
1321
- raise requests_exception
1322
-
1323
- raise exceptions.PlotlyError(message)
+ # otherwise raise a generic error
+ raise exceptions.PlotlyRequestError(requests_exception)
+ else:
1324
+ requests_exception.message = message
1325
1326
1327
if ('content-type' in response.headers and
1328
'json' in response.headers['content-type'] and
0 commit comments