Merge pull request #457 from kiwix/fix_no_file_to_publish

Do not fail if there is no file to publish.
This commit is contained in:
Matthieu Gautier 2020-07-20 10:26:45 +02:00 committed by GitHub
commit 045099f5f9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 1 deletions

View File

@ -272,7 +272,11 @@ def make_archive(project, make_release):
# We don't know how to name the release.
return None
base_dir, export_files = EXPORT_FILES[project]
try:
base_dir, export_files = EXPORT_FILES[project]
except KeyError:
# No binary files to export
return None
if make_release:
postfix = get_postfix(project)