mirror of
https://github.com/langgenius/dify.git
synced 2026-01-28 06:32:22 +08:00
parent
26cfccb84b
commit
eceaea68b1
@ -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():
|
||||
|
||||
Loading…
Reference in New Issue
Block a user