aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--build/plugins/lib/nots/package_manager/base/node_modules_bundler.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/build/plugins/lib/nots/package_manager/base/node_modules_bundler.py b/build/plugins/lib/nots/package_manager/base/node_modules_bundler.py
index 03ad72c2ba..0e5baf77ef 100644
--- a/build/plugins/lib/nots/package_manager/base/node_modules_bundler.py
+++ b/build/plugins/lib/nots/package_manager/base/node_modules_bundler.py
@@ -75,7 +75,8 @@ def extract_node_modules(build_root, node_modules_path, bundle_path):
nm_path = build_nm_path(os.path.join(build_root, p))
try:
- os.rename(bundled_nm_path, nm_path)
+ if os.path.exists(bundled_nm_path):
+ os.rename(bundled_nm_path, nm_path)
except FileNotFoundError as e:
logging.error(f"exists={os.path.exists(bundled_nm_path)} : {bundled_nm_path}")
logging.error(f"exists={os.path.exists(nm_path)} : {nm_path}")