Skip to content

Commit 3eb311e

Browse files
MarZabowais
authored andcommitted
Open STATS_FILE as unicode (django-webpack#116)
1 parent fbda06f commit 3eb311e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

webpack_loader/loader.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ def __init__(self, name='DEFAULT'):
2222

2323
def _load_assets(self):
2424
try:
25-
with open(self.config['STATS_FILE']) as f:
25+
with open(self.config['STATS_FILE'], encoding="utf-8") as f:
2626
return json.load(f)
2727
except IOError:
2828
raise IOError(

0 commit comments

Comments
 (0)