Skip to content

Commit

Permalink
fix: add error arg back into catch block for older Node.js users
Browse files Browse the repository at this point in the history
  • Loading branch information
liviarett authored and rvagg committed Jun 22, 2021
1 parent cfd12ff commit 5cde818
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/find-python.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 5cde818

Please sign in to comment.