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

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


Expand Down

0 comments on commit 24d0be3

Please sign in to comment.