dbx-tools-node-runtime 0.9.173__tar.gz → 0.9.174__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: dbx-tools-node-runtime
3
- Version: 0.9.173
3
+ Version: 0.9.174
4
4
  Summary: Shared PythonMonkey runtime and lazy Node.js bootstrap
5
5
  License-Expression: Apache-2.0
6
6
  License-File: LICENSE
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "dbx-tools-node-runtime"
3
- version = "0.9.173"
3
+ version = "0.9.174"
4
4
  description = "Shared PythonMonkey runtime and lazy Node.js bootstrap"
5
5
  readme = "README.md"
6
6
  requires-python = ">=3.10,<4"
@@ -2,7 +2,7 @@
2
2
 
3
3
  [project]
4
4
  name = "dbx-tools-node-runtime"
5
- version = "0.9.173"
5
+ version = "0.9.174"
6
6
  description = "Shared PythonMonkey runtime and lazy Node.js bootstrap"
7
7
  readme = "README.md"
8
8
  requires-python = ">=3.10,<4"
@@ -18819,7 +18819,25 @@ function execFile(command, args, _options, callback) {
18819
18819
  }, (error) => callback(error instanceof Error ? error : new Error(String(error))));
18820
18820
  }
18821
18821
  function spawnSync(command, args = [], options = {}) {
18822
- const result = pythonHost().process.run(command, args, options.env, options.input, options.cwd);
18822
+ let result;
18823
+ try {
18824
+ result = pythonHost().process.run(command, args, options.env, options.input, options.cwd);
18825
+ } catch (error) {
18826
+ if (!String(error).includes("Python FileNotFoundError: [Errno 2]"))
18827
+ throw error;
18828
+ return {
18829
+ status: null,
18830
+ stdout: "",
18831
+ stderr: "",
18832
+ error: Object.assign(new Error(`spawnSync ${command} ENOENT`), {
18833
+ code: "ENOENT",
18834
+ errno: -2,
18835
+ syscall: `spawnSync ${command}`,
18836
+ path: command,
18837
+ spawnargs: args
18838
+ })
18839
+ };
18840
+ }
18823
18841
  return {
18824
18842
  status: result.exitCode,
18825
18843
  stdout: result.stdout ?? "",