Skip to content

Commit 418fbed

Browse files
committed
🐛 fix MySQL SSL connection parameter logic for clarity
1 parent 5749273 commit 418fbed

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/sqlite3_to_mysql/transporter.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,8 +161,8 @@ def __init__(self, **kwargs: tx.Unpack[SQLite3toMySQLParams]):
161161
else:
162162
connection_args["host"] = self._mysql_host
163163
connection_args["port"] = self._mysql_port
164-
if not self._mysql_ssl_disabled:
165-
connection_args["ssl_disabled"] = False
164+
if self._mysql_ssl_disabled:
165+
connection_args["ssl_disabled"] = True
166166

167167
try:
168168
_mysql_connection = mysql.connector.connect(**connection_args)

0 commit comments

Comments
 (0)