Skip to content

Commit 3576863

Browse files
committed
Merge pull request PyMySQL#204 from bruth/patch-1
Ensure client password defaults to empty string
2 parents 1fabcf3 + 35a4dcc commit 3576863

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pymysql/connections.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -590,7 +590,7 @@ def _config(key, default):
590590
self.host = host
591591
self.port = port
592592
self.user = user or DEFAULT_USER
593-
self.password = passwd
593+
self.password = passwd or ""
594594
self.db = database
595595
self.no_delay = no_delay
596596
self.unix_socket = unix_socket

0 commit comments

Comments
 (0)