Skip to content

Commit a12d6f1

Browse files
authored
Merge pull request #118 from fosslight/dep
Fix Dep5 encoding error
2 parents 44aa533 + 0964ab5 commit a12d6f1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/fosslight_prechecker/_precheck.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ def create_reuse_dep5_file(path):
162162
for file_to_exclude in exclude_file_list:
163163
str_contents += f"\nFiles: {file_to_exclude} \nCopyright: -\nLicense: -\n"
164164

165-
with open(reuse_config_file, "a") as f:
165+
with open(reuse_config_file, "a", encoding="utf8") as f:
166166
if not need_rollback:
167167
f.write(_DEFAULT_CONFIG_PREFIX)
168168
f.write(str_contents)

0 commit comments

Comments
 (0)