commit | 7e10708628c1bd21d6a08adab3913c2275204df9 | [log] [tgz] |
---|---|---|
author | Prathmesh Prabhu <[email protected]> | Wed Jan 11 17:16:41 2017 -0800 |
committer | chrome-bot <[email protected]> | Fri Jan 20 14:23:53 2017 -0800 |
tree | f5763bd074fe82b855edd13ce48778d12ee69484 | |
parent | 196c997233b7fb8334055206b4d348251364da64 [diff] [blame] |
run_pylint: Tighten exception capture in main. We want to avoid printing a stack trace when a lint check fails. But if pytlint chokes on a file for some other reason, we want that trace. BUG=None. TEST=./utils/run_pylint throws an exception trace (that's a separate bug) Change-Id: Ib002d99707a8707cb5f3ce2de3079a8f37f32b08 Reviewed-on: https://chromium-review.googlesource.com/427409 Commit-Ready: Prathmesh Prabhu <[email protected]> Tested-by: Prathmesh Prabhu <[email protected]> Reviewed-by: Prathmesh Prabhu <[email protected]> Reviewed-by: Shuqian Zhao <[email protected]>
diff --git a/utils/run_pylint.py b/utils/run_pylint.py index 3f72c6b..6bf52ec 100755 --- a/utils/run_pylint.py +++ b/utils/run_pylint.py
@@ -459,6 +459,6 @@ if __name__ == '__main__': try: main() - except Exception as e: + except pylint_error as e: logging.error(e) sys.exit(1)