未验证 提交 5f581805 编写于 作者: W wade zhang 提交者: GitHub

Merge pull request #21972 from taosdata/docs/sangshuduo/TS-3619-cloud-python

docs: add exception catching to connect()
......@@ -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.
先完成此消息的编辑!
想要评论请 注册