Skip to content

Commit

Permalink
fix: New style exception
Browse files Browse the repository at this point in the history
Use new style exceptions so that it works in both Python 2 and 3. Doing the
same as previous commit, but in a different file.

Refs: nodejs#1817 (comment)
  • Loading branch information
Jose Quijada committed Jul 10, 2019
1 parent 24d0be3 commit 01495e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gyp/pylib/gyp/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -622,7 +622,7 @@ def IsCygwin():
stderr=subprocess.STDOUT)
stdout,stderr = out.communicate()
return "CYGWIN" in stdout
except Exception, e:
except Exception:
return False


0 comments on commit 01495e9

Please sign in to comment.