提交 37b83059 编写于 作者: sangshuduo's avatar sangshuduo

docs: add exception catching to connect()

上级 69a55514
......@@ -10,7 +10,10 @@ import os
url = os.environ["TDENGINE_CLOUD_URL"]
token = os.environ["TDENGINE_CLOUD_TOKEN"]
conn = taosrest.connect(url=url, token=token)
try:
conn = taosrest.connect(url=url, token=token)
except Exception as e:
print(str(e))
# ANCHOR_END: connect
# ANCHOR: insert
# create super table
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册