Skip to content

Commit 58b5f91

Browse files
authored
fixed connecting with empty mysql password (#128)
null password was being converted by str() into a literal string "None"
1 parent 3fc65aa commit 58b5f91

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/sqlite3_to_mysql/transporter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ def __init__(self, **kwargs: tx.Unpack[SQLite3toMySQLParams]):
6969
else:
7070
raise ValueError("Please provide a MySQL user")
7171

72-
self._mysql_password = str(kwargs.get("mysql_password")) or None
72+
self._mysql_password = str(kwargs.get("mysql_password")) if kwargs.get("mysql_password") else None
7373

7474
self._mysql_host = str(kwargs.get("mysql_host", "localhost"))
7575

0 commit comments

Comments
 (0)