diff --git a/lib/find-python.js b/lib/find-python.js index e6464d12c6..a445e825b9 100644 --- a/lib/find-python.js +++ b/lib/find-python.js @@ -36,7 +36,7 @@ for (const majorMinor of ['39', '38', '37', '36']) { function getOsUserInfo () { try { return require('os').userInfo().username - } catch {} + } catch (e) {} } function PythonFinder (configPython, callback) {