Skip to content

Commit

Permalink
Fix UnicodeDecodeError on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
alexrudd2 committed Jun 21, 2023
1 parent 45866c8 commit b056c1f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion huber/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import os

root = os.path.normpath(os.path.dirname(__file__))
with open(os.path.join(root, 'faults.csv')) as in_file:
with open(os.path.join(root, 'faults.csv'), encoding='utf8') as in_file:
reader = csv.reader(in_file)
next(reader)
faults = {int(row[0]): {
Expand Down

0 comments on commit b056c1f

Please sign in to comment.