mirror of https://github.com/MISP/PyMISP
fix: Do not create empty manifest, json load dislikes it.
parent
7379d82734
commit
309eb3e8ab
|
@ -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.")
|
||||
|
|
Loading…
Reference in New Issue