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
|
# create an empty manifest
|
||||||
try:
|
try:
|
||||||
with open(os.path.join(settings.outputdir, 'manifest.json'), 'w'):
|
with open(os.path.join(settings.outputdir, 'manifest.json'), 'w') as f:
|
||||||
pass
|
json.dump({}, f)
|
||||||
except PermissionError as error:
|
except PermissionError as error:
|
||||||
print(error)
|
print(error)
|
||||||
print("Please fix the above error and try again.")
|
print("Please fix the above error and try again.")
|
||||||
|
|
Loading…
Reference in New Issue