Skip to content

Commit 3a3f016

Browse files
committed
* Command Line: Allow specifying empty password
1 parent 7a059a6 commit 3a3f016

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mycli/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -393,7 +393,7 @@ def connect(self, database='', user='', passwd='', host='', port='',
393393
port = port or cnf['port']
394394
ssl = ssl or {}
395395

396-
passwd = passwd or cnf['password']
396+
passwd = passwd if isinstance(passwd, str) else cnf['password']
397397
charset = charset or cnf['default-character-set'] or 'utf8'
398398

399399
# Favor whichever local_infile option is set.

0 commit comments

Comments
 (0)