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

Commit

Permalink
Update ftp_publish_helper.py
Browse files Browse the repository at this point in the history
  • Loading branch information
sdpython committed Mar 11, 2019
1 parent 8e9dee6 commit 2584910
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/ensae_teaching_cs/automation/ftp_publish_helper.py
Expand Up @@ -381,7 +381,16 @@ def _update_path(pth):

# publish
if additional_projects:
projects.extend(additional_projects)
for proj in additional_projects:
if 'local' not in proj:
if 'folder' not in proj:
raise KeyError("Keys 'folder' or 'local' must be specified.")
proj = proj.copy()
proj['local'] = proj['folder']
if 'folder' not in proj:
proj = proj.copy()
proj['folder'] = proj['local']
projects.append(proj)

if transfer:
publish_documentation(projects, ftpsite=ftpsite, login=login, password=password,
Expand Down

0 comments on commit 2584910

Please sign in to comment.