* fix ci

* fix ci

* fix
This commit is contained in:
longbingljw 2025-11-14 14:44:13 +08:00 committed by GitHub
parent 26cfccb84b
commit eceaea68b1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 5 additions and 1 deletions

View File

@ -4,6 +4,7 @@ import pymysql
def check_tiflash_ready() -> bool:
connection = None
try:
connection = pymysql.connect(
host="localhost",
@ -28,7 +29,10 @@ def check_tiflash_ready() -> bool:
return False
finally:
if connection:
connection.close()
try:
connection.close()
except Exception:
pass
def main():