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 0c189f2 commit 6e4622cCopy full SHA for 6e4622c
plotly/tools.py
@@ -276,9 +276,20 @@ def get_config_file(*args):
276
"""
277
if check_file_permissions():
278
ensure_local_plotly_files() # make sure what's there is OK
279
- return utils.load_json_dict(CONFIG_FILE, *args)
+ returned_obj = utils.load_json_dict(CONFIG_FILE, *args)
280
else:
281
- return FILE_CONTENT[CONFIG_FILE]
+ returned_obj = FILE_CONTENT[CONFIG_FILE]
282
+
283
+ list_of_domains = []
284
+ for domain in ['plotly_domain', 'plotly_api_domain']:
285
+ if domain in returned_obj:
286
+ list_of_domains.append(returned_obj[domain])
287
288
+ validate_domains(*list_of_domains)
289
290
+ return returned_obj
291
292
293
294
295
def reset_config_file():
0 commit comments