From 5cde818aac715477e9e9747966bb6b4c4ed070a8 Mon Sep 17 00:00:00 2001 From: Livia Rett <30511433+liviarett@users.noreply.github.com> Date: Tue, 22 Jun 2021 03:20:50 +0100 Subject: [PATCH] fix: add error arg back into catch block for older Node.js users --- lib/find-python.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {