From 7631f07f87c0842979b4e32432ee239944e978c0 Mon Sep 17 00:00:00 2001 From: Jon Mease Date: Mon, 3 Sep 2018 07:41:21 -0400 Subject: [PATCH] Retry on "Uh oh, an error occurred" request exceptions --- plotly/api/v2/utils.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plotly/api/v2/utils.py b/plotly/api/v2/utils.py index 62678143db2..de3817071f4 100644 --- a/plotly/api/v2/utils.py +++ b/plotly/api/v2/utils.py @@ -117,6 +117,8 @@ def should_retry(exception): 500 <= exception.status_code < 600): # Retry on 5XX errors. return True + elif 'Uh oh, an error occurred' in exception.message: + return True return False