From a57781c616da6ed06e61c51d417e44814eb48026 Mon Sep 17 00:00:00 2001 From: senacor-swr Date: Fri, 21 Jul 2023 18:37:53 +0200 Subject: [PATCH] Fix remove db from connection string (#2372) Fix ping.py calling .set instead of ._replace --- ping.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ping.py b/ping.py index 4f39640e..681c75d8 100644 --- a/ping.py +++ b/ping.py @@ -17,7 +17,7 @@ if url.drivername.startswith("sqlite"): # Null out the database so raw_connection doesnt error if it doesnt exist # CTFd will create the database if it doesnt exist -url = url.set(database=None) +url = url._replace(database=None) # Wait for the database server to be available engine = create_engine(url)