From 24d0be33aa9038b1a9ae41e6faf7fc8c13ccba77 Mon Sep 17 00:00:00 2001 From: Jose Quijada Date: Wed, 10 Jul 2019 09:13:56 -0400 Subject: [PATCH] fix: New style exception Use new style exceptions so that it works in both Python 2 and 3 Refs: https://github.com/nodejs/node-gyp/pull/1817#discussion_r302047591 --- gyp/gyp_main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gyp/gyp_main.py b/gyp/gyp_main.py index 05ee16007b..67e38b4164 100755 --- a/gyp/gyp_main.py +++ b/gyp/gyp_main.py @@ -29,7 +29,7 @@ def UnixifyPath(path): stderr=subprocess.STDOUT) stdout,stderr = out.communicate() return stdout - except Exception, e: + except Exception: return path