fix: Do not create empty manifest, json load dislikes it.

pull/789/head
Raphaël Vinot 2021-09-22 10:14:56 +02:00
parent 7379d82734
commit 309eb3e8ab
1 changed files with 2 additions and 2 deletions

View File

@ -147,8 +147,8 @@ class FeedGenerator:
# create an empty manifest
try:
with open(os.path.join(settings.outputdir, 'manifest.json'), 'w'):
pass
with open(os.path.join(settings.outputdir, 'manifest.json'), 'w') as f:
json.dump({}, f)
except PermissionError as error:
print(error)
print("Please fix the above error and try again.")