diff --git a/tools/repo_pull/gerrit.py b/tools/repo_pull/gerrit.py index 1d63658ec..c2a3c9409 100755 --- a/tools/repo_pull/gerrit.py +++ b/tools/repo_pull/gerrit.py @@ -361,6 +361,7 @@ def main(): if not args.gerrit: try: args.gerrit = find_gerrit_name() + # pylint: disable=bare-except except: print('gerrit instance not found, use [-g GERRIT]') sys.exit(1) diff --git a/tools/repo_pull/repo_patch.py b/tools/repo_pull/repo_patch.py index c5367ca8c..f97d21104 100755 --- a/tools/repo_pull/repo_patch.py +++ b/tools/repo_pull/repo_patch.py @@ -52,6 +52,7 @@ def main(): if not args.gerrit: try: args.gerrit = find_gerrit_name() + # pylint: disable=bare-except except: print('gerrit instance not found, use [-g GERRIT]') sys.exit(1) diff --git a/tools/repo_pull/repo_pull.py b/tools/repo_pull/repo_pull.py index 67916155a..157ede5f1 100755 --- a/tools/repo_pull/repo_pull.py +++ b/tools/repo_pull/repo_pull.py @@ -417,6 +417,7 @@ def main(): if not args.gerrit: try: args.gerrit = find_gerrit_name() + # pylint: disable=bare-except except: print('gerrit instance not found, use [-g GERRIT]') sys.exit(1) diff --git a/tools/repo_pull/repo_review.py b/tools/repo_pull/repo_review.py index 34ac44a0d..74ad96f39 100755 --- a/tools/repo_pull/repo_review.py +++ b/tools/repo_pull/repo_review.py @@ -191,6 +191,7 @@ def main(): if not args.gerrit: try: args.gerrit = find_gerrit_name() + # pylint: disable=bare-except except: print('gerrit instance not found, use [-g GERRIT]') sys.exit(1)