Skip to content
This repository has been archived by the owner on Jan 13, 2024. It is now read-only.

Commit

Permalink
fix a bug when getting the password from the user when using FTP
Browse files Browse the repository at this point in the history
  • Loading branch information
sdpython committed Aug 8, 2016
1 parent 1044fcd commit e25bfb8
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/ensae_teaching_cs/automation/ftp_publish_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,11 +125,13 @@ def publish_documentation(

params = {"ftpsite": ftpsite,
"login": login,
"password": password,
}
"password": password}

nbnone = len([v for k, v in params.items() if v is None or len(v) == 0])
if nbnone > 0:
fLOG("retrying to get parameters from users")
for k, v in sorted(params.items()):
fLOG(" {0}={1}".format(k, v))
params = open_window_params(
params,
title="Website and Credentials",
Expand Down

0 comments on commit e25bfb8

Please sign in to comment.