repo: avoid bare excepts to allow SystemExit to bubble

Bug: https://crbug.com/gerrit/12327
Change-Id: I4ce1142379b111f9ba3a2e5a437026e5c0378a9e
Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/254756
Reviewed-by: David Pursehouse <dpursehouse@collab.net>
Tested-by: Mike Frysinger <vapier@google.com>
This commit is contained in:
Mike Frysinger 2020-02-12 17:04:32 -05:00
parent e19d9e1a65
commit 72b6dc8891

2
repo
View File

@ -25,7 +25,7 @@ def exec_command(cmd):
sys.exit(ret) sys.exit(ret)
else: else:
os.execvp(cmd[0], cmd) os.execvp(cmd[0], cmd)
except: except Exception:
pass pass