From febdfa21371e2e11596f1d43fbd4f8232ffe231d Mon Sep 17 00:00:00 2001 From: cclauss Date: Tue, 14 Nov 2017 07:56:07 +0100 Subject: [PATCH] gyp: fix sntex error PR-URL: https://github.com/nodejs/node-gyp/pull/1333 Reviewed-By: Refael Ackermann --- gyp/pylib/gyp/mac_tool.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gyp/pylib/gyp/mac_tool.py b/gyp/pylib/gyp/mac_tool.py index b8f38a8fdc..b8b7344eff 100755 --- a/gyp/pylib/gyp/mac_tool.py +++ b/gyp/pylib/gyp/mac_tool.py @@ -127,7 +127,7 @@ def _DetectInputEncoding(self, file_name): fp = open(file_name, 'rb') try: header = fp.read(3) - except e: + except Exception: fp.close() return None fp.close()