diff --git a/tests/system-test/0-others/user_control.py b/tests/system-test/0-others/user_control.py index 52df5545b6..981b033f19 100644 --- a/tests/system-test/0-others/user_control.py +++ b/tests/system-test/0-others/user_control.py @@ -169,8 +169,8 @@ class TDTestCase: login_except = False tdLog.printNoPrefix(login_except) try: - with taos_connect(user=user, passwd=passwd) as conn: - cursor = conn.cursor() + with taos_connect(user=user, passwd=passwd) as cursor: + cursor except BaseException: login_except = True cursor = None