Skip to content

Commit f6788e7

Browse files
committed
Pass None if init-commands are empty.
1 parent 9e2ee71 commit f6788e7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mycli/sqlexecute.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ def connect(
233233
ssl=ssl_context,
234234
program_name="mycli",
235235
defer_connect=defer_connect,
236-
init_command=init_command,
236+
init_command=init_cmd or None,
237237
)
238238

239239
if init_command:

0 commit comments

Comments
 (0)