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(
57
57
)
58
58
global plotlycredentials = PlotlyCredentials (username, api_key)
59
59
60
+
61
+
60
62
# if endpoints are specified both the base and api domains must be
61
63
# specified
62
64
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`" )
67
67
end
68
+ global plotlyconfig = merge (DEFAULT_CONFIG, endpoints)
68
69
end
69
70
end
70
71
Original file line number Diff line number Diff line change 1
1
using Plotly
2
2
using JSON
3
- using Base . Test
3
+ using Test
4
4
5
5
# test signin only one endpoint specified
6
6
@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