Commit 04925ac3 authored by Simon Glass's avatar Simon Glass Committed by Commit Bot

chromite_wrapper: add python3 support for except

I don't have an account on the chrome gerrit or whatever, and don't
really want to create one for a oneline patch, so I was hoping you'd be
ok with passing this along through the proper channels.

R=ehmaldonado@chromium.org
Signed-off-by: 's avatarMarty E. Plummer <hanetzer@startmail.com>
Signed-off-by: 's avatarSimon Glass <sjg@chromium.org>
Bug: None
Change-Id: I3daf58ee802e7c9b144227999f1832b364c5759a
Reviewed-on: https://chromium-review.googlesource.com/1096128Reviewed-by: 's avatarMike Frysinger <vapier@chromium.org>
Reviewed-by: 's avatarRobbie Iannucci <iannucci@chromium.org>
Commit-Queue: Robbie Iannucci <iannucci@chromium.org>
parent a28b14f1
......@@ -69,7 +69,7 @@ def main():
path = os.path.join(chromite_dir, 'bin', target)
try:
os.execv(path, [path] + sys.argv[1:])
except EnvironmentError, e:
except EnvironmentError as e:
if e.errno not in (errno.ENOENT, errno.EPERM):
raise
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment