Skip to content

Commit 52a51d8

Browse files
committed
Default to hard-coded plot.ly ___domain when DNE.
See plotly#293
1 parent 787793d commit 52a51d8

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

plotly/graph_reference.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,10 @@ def get_graph_reference():
2222
if files.check_file_permissions():
2323
graph_reference = utils.load_json_dict(files.GRAPH_REFERENCE_FILE)
2424
config = utils.load_json_dict(files.CONFIG_FILE)
25-
plotly_domain = config['plotly_domain']
25+
26+
# TODO: https://github.com/plotly/python-api/issues/293
27+
default_domain = files.FILE_CONTENT[files.CONFIG_FILE]['plotly_domain']
28+
plotly_domain = config.get('plotly_domain', default_domain)
2629
else:
2730
graph_reference = {}
2831
plotly_domain = files.FILE_CONTENT[files.CONFIG_FILE]['plotly_domain']

0 commit comments

Comments
 (0)