This commit is contained in:
cpwu 2022-05-12 19:08:35 +08:00
parent 79ccc712a9
commit 2ed664708d
1 changed files with 2 additions and 2 deletions

View File

@ -169,8 +169,8 @@ class TDTestCase:
login_except = False login_except = False
tdLog.printNoPrefix(login_except) tdLog.printNoPrefix(login_except)
try: try:
with taos_connect(user=user, passwd=passwd) as conn: with taos_connect(user=user, passwd=passwd) as cursor:
cursor = conn.cursor() cursor
except BaseException: except BaseException:
login_except = True login_except = True
cursor = None cursor = None