mirror of https://github.com/MISP/MISP
fix: [stix1 export] Indentation issues caused STIX1 result files not to be written
parent
ab3c97718a
commit
6dd645dfc7
|
@ -55,8 +55,8 @@ def _process_misp_files(scope: str, orgname: str, version: str, return_format:st
|
|||
parser = parser(orgname, version)
|
||||
for name in input_names:
|
||||
parser.parse_json_content(name)
|
||||
with open(f'{name}.out', 'wt', encoding='utf-8') as f:
|
||||
f.write(globals()[f'_get_{return_format}_events'](parser.stix_package))
|
||||
with open(f'{name}.out', 'wt', encoding='utf-8') as f:
|
||||
f.write(globals()[f'_get_{return_format}_events'](parser.stix_package))
|
||||
errors = parser.errors
|
||||
if errors:
|
||||
_handle_errors(errors)
|
||||
|
|
Loading…
Reference in New Issue