Skip to content

Commit 03e868a

Browse files
authored
Merge pull request #120 from fosslight/develop
Fix yaml file encoding error
2 parents 76eb5fd + 16df833 commit 03e868a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/fosslight_prechecker/_result.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ def write_result_yaml(result_file: str, exit_code: int, result_item: ResultItem)
180180
yaml_result = result_item.get_print_yaml()
181181
# Make yaml file
182182
with io.open(result_file, 'w', encoding='utf8') as outfile:
183-
yaml.dump(yaml_result, outfile, default_flow_style=False, sort_keys=False)
183+
yaml.dump(yaml_result, outfile, default_flow_style=False, sort_keys=False, allow_unicode=True)
184184
success = True
185185
except Exception as ex:
186186
logger.error(f"Error_to_write_yaml: {ex}")

0 commit comments

Comments
 (0)