Skip to content

Commit

Permalink
#22 set encoding when read diskinfo.txt
Browse files Browse the repository at this point in the history
yakumo-saki committed Sep 9, 2021

Unverified

This user has not yet uploaded their public signing key.
1 parent a9fd4ed commit 2bf533e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/parser/cdi_parser.py
Original file line number Diff line number Diff line change
@@ -38,7 +38,7 @@ def parse(path):
result = copy.deepcopy(RESULT)

logger.debug(f"Opening file: {path}")
with open(path) as f:
with open(path, encoding='utf-8') as f:

detail = None
lineNo = 0

0 comments on commit 2bf533e

Please sign in to comment.