File tree Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -57,14 +57,15 @@ function signin(
5757 )
5858 global plotlycredentials = PlotlyCredentials (username, api_key)
5959
60+
61+
6062 # if endpoints are specified both the base and api domains must be
6163 # specified
6264 if endpoints != nothing
63- try
64- merge (DEFAULT_CONFIG, endpoints)
65- catch
66- error (" You must specify both the base and api endpoints." )
65+ if ! haskey (endpoints, " plotly_domain" ) || ! haskey (endpoints, " plotly_api_domain" )
66+ error (" You must specify both the `plotly_domain` and `plotly_api_domain`" )
6767 end
68+ global plotlyconfig = merge (DEFAULT_CONFIG, endpoints)
6869 end
6970end
7071
Original file line number Diff line number Diff line change 11using Plotly
22using JSON
3- using Base . Test
3+ using Test
44
55# test signin only one endpoint specified
66@test_throws ErrorException Plotly. signin (" fake_username" , " fake_api_key" , Dict (" plotly_domain" => " test" ))
You can’t perform that action at this time.
0 commit comments