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.
5s
1 parent f049351 commit fe66f9cCopy full SHA for fe66f9c
plotly/graph_reference.py
@@ -15,6 +15,7 @@
15
from plotly import exceptions, files, utils
16
17
GRAPH_REFERENCE_PATH = '/v2/plot-schema'
18
+GRAPH_REFERENCE_DOWNLOAD_TIMEOUT = 5 # seconds
19
20
21
def get_graph_reference():
@@ -43,7 +44,8 @@ def get_graph_reference():
43
44
GRAPH_REFERENCE_PATH, sha1)
45
46
try:
- response = requests.get(graph_reference_url)
47
+ response = requests.get(graph_reference_url,
48
+ timeout=GRAPH_REFERENCE_DOWNLOAD_TIMEOUT)
49
response.raise_for_status()
50
except requests.exceptions.RequestException:
51
if not graph_reference:
0 commit comments