@@ -50,7 +50,8 @@ def warning_on_one_line(message, category, filename, lineno, file=None, line=Non
50
50
'stream_ids' : []},
51
51
CONFIG_FILE : {'plotly_domain' : 'https://plot.ly' ,
52
52
'plotly_streaming_domain' : 'stream.plot.ly' ,
53
- 'plotly_api_domain' : 'https://api.plot.ly' }}
53
+ 'plotly_api_domain' : 'https://api.plot.ly' ,
54
+ 'plotly_ssl_verification' : True }}
54
55
55
56
try :
56
57
os .mkdir (TEST_DIR )
@@ -142,7 +143,8 @@ def reset_credentials_file():
142
143
143
144
def set_config_file (plotly_domain = None ,
144
145
plotly_streaming_domain = None ,
145
- plotly_api_domain = None ):
146
+ plotly_api_domain = None ,
147
+ plotly_ssl_verification = None ):
146
148
"""Set the keyword-value pairs in `~/.plotly/.config`.
147
149
148
150
"""
@@ -157,6 +159,8 @@ def set_config_file(plotly_domain=None,
157
159
settings ['plotly_streaming_domain' ] = plotly_streaming_domain
158
160
if isinstance (plotly_api_domain , six .string_types ):
159
161
settings ['plotly_api_domain' ] = plotly_api_domain
162
+ if isinstance (plotly_ssl_verification , (six .string_types , bool )):
163
+ settings ['plotly_ssl_verification' ] = plotly_ssl_verification
160
164
utils .save_json_dict (CONFIG_FILE , settings )
161
165
ensure_local_plotly_files () # make sure what we just put there is OK
162
166
0 commit comments