Skip to content

Commit 86692e8

Browse files
committed
Fix format
1 parent 57b1656 commit 86692e8

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

chdb/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ def query(sql, output_format="CSV", path="", udf_path=""):
7878
g_udf_path = udf_path
7979
conn_str = ""
8080
if path == "":
81-
conn_str = f":memory:"
81+
conn_str = ":memory:"
8282
else:
8383
conn_str = f"{path}"
8484
if g_udf_path != "":

chdb/session/state.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
g_session = None
1010
g_session_path = None
1111

12+
1213
class Session:
1314
"""
1415
Session will keep the state of query.
@@ -45,7 +46,8 @@ def __init__(self, path=None):
4546
if g_session is not None:
4647
warnings.warn(
4748
"There is already an active session. Creating a new session will close the existing one. "
48-
f"It is recommended to close the existing session before creating a new one. Closing the existing session {g_session_path}"
49+
"It is recommended to close the existing session before creating a new one. "
50+
f"Closing the existing session {g_session_path}"
4951
)
5052
g_session.close()
5153
g_session_path = None

0 commit comments

Comments
 (0)