def check_url(url=None):
"""Check URL integrity.
Parameters
----------
url : string
URL to be checked.
"""
if url is None:
if 'http' not in get_config_file()['offline_url']:
raise Exception("No default offline URL set. "
"Please run "
"quantmod.set_config_file(offline_url=YOUR_URL) "
"to set the default offline URL.")
else:
url = get_config_file()['offline_url']
if url is not None:
if not isinstance(url, six.string_types):
raise TypeError("Invalid url '{0}'. "
"It should be string."
.format(url))
pyo.download_plotlyjs(url)
评论列表
文章目录