Fix reference mistake

This commit is contained in:
OmarFarrag 2019-08-19 17:12:11 +02:00
parent 9b1587ed1b
commit 0a5cb7745b
1 changed files with 2 additions and 2 deletions

View File

@ -260,8 +260,8 @@ class FTPFilesStore(object):
u = urlparse(uri)
self.ftp = FTP()
self.ftp.connect(u.hostname, u.port or '21')
username = u.username or FTP_USERNAME
password = u.password or FTP_PASSWORD
username = u.username or self.FTP_USERNAME
password = u.password or self.FTP_PASSWORD
self.ftp.login(username, password)
self.basedir = u.path