Skip to content

Commit

Permalink
Merge pull request #120 from fosslight/develop
Browse files Browse the repository at this point in the history
Fix yaml file encoding error
  • Loading branch information
soimkim authored Nov 18, 2022
2 parents 76eb5fd + 16df833 commit 03e868a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/fosslight_prechecker/_result.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ def write_result_yaml(result_file: str, exit_code: int, result_item: ResultItem)
yaml_result = result_item.get_print_yaml()
# Make yaml file
with io.open(result_file, 'w', encoding='utf8') as outfile:
yaml.dump(yaml_result, outfile, default_flow_style=False, sort_keys=False)
yaml.dump(yaml_result, outfile, default_flow_style=False, sort_keys=False, allow_unicode=True)
success = True
except Exception as ex:
logger.error(f"Error_to_write_yaml: {ex}")
Expand Down

0 comments on commit 03e868a

Please sign in to comment.