diff options
Diffstat (limited to 'scripts/lib/recipetool/create_npm.py')
-rw-r--r-- | scripts/lib/recipetool/create_npm.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/lib/recipetool/create_npm.py b/scripts/lib/recipetool/create_npm.py index fcc0172af8..e5aaa60bf8 100644 --- a/scripts/lib/recipetool/create_npm.py +++ b/scripts/lib/recipetool/create_npm.py | |||
@@ -92,7 +92,7 @@ class NpmRecipeHandler(RecipeHandler): | |||
92 | return False | 92 | return False |
93 | 93 | ||
94 | def read_package_json(fn): | 94 | def read_package_json(fn): |
95 | with open(fn, 'r') as f: | 95 | with open(fn, 'r', errors='surrogateescape') as f: |
96 | return json.loads(f.read()) | 96 | return json.loads(f.read()) |
97 | 97 | ||
98 | files = RecipeHandler.checkfiles(srctree, ['package.json']) | 98 | files = RecipeHandler.checkfiles(srctree, ['package.json']) |