There was an error while loading. Please reload this page.
1 parent fda16c7 commit 6a15a43Copy full SHA for 6a15a43
webpack_loader/utils.py
@@ -45,7 +45,8 @@ def get_config(config_name):
45
46
def get_assets(config):
47
try:
48
- return json.loads(open(config['STATS_FILE']).read())
+ with open(config['STATS_FILE']) as f:
49
+ return json.load(f)
50
except IOError:
51
raise IOError(
52
'Error reading {}. Are you sure webpack has generated the file '
0 commit comments