Index: build/android/gyp/ant.py |
diff --git a/build/android/gyp/ant.py b/build/android/gyp/ant.py |
index fc1b3afbf920074dc1faeb4d0c9b5a27a725fec5..49e44bba6245188e52338ac32a309540606c18d5 100755 |
--- a/build/android/gyp/ant.py |
+++ b/build/android/gyp/ant.py |
@@ -25,20 +25,20 @@ def main(argv): |
try: |
args = argv[1:] |
stdout = build_utils.CheckOutput(['ant'] + args) |
- except build_utils.CalledProcessError as e: |
+ except build_utils.CalledProcessError: |
# It is very difficult to diagnose ant failures without the '-verbose' |
# argument. So, when an ant command fails, re-run it with '-verbose' so that |
# the cause of the failure is easier to identify. |
verbose_args = ['-verbose'] + [a for a in argv[1:] if a != '-quiet'] |
try: |
stdout = build_utils.CheckOutput(['ant'] + verbose_args) |
- except build_utils.CalledProcessError as e: |
+ except build_utils.CalledProcessError: |
traceback.print_exc() |
sys.exit(1) |
# If this did sys.exit(1), building again would succeed (which would be |
# awkward). Instead, just print a big warning. |
- build_util.PrintBigWarning( |
+ build_utils.PrintBigWarning( |
'This is unexpected. `ant ' + ' '.join(args) + '` failed.' + |
'But, running `ant ' + ' '.join(verbose_args) + '` passed.') |