| OLD | NEW |
| 1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
| 2 # | 2 # |
| 3 # Copyright 2016 Google Inc. | 3 # Copyright 2016 Google Inc. |
| 4 # | 4 # |
| 5 # Use of this source code is governed by a BSD-style license that can be | 5 # Use of this source code is governed by a BSD-style license that can be |
| 6 # found in the LICENSE file. | 6 # found in the LICENSE file. |
| 7 | 7 |
| 8 | 8 |
| 9 """Create the asset and upload it.""" | 9 """Create the asset and upload it.""" |
| 10 | 10 |
| (...skipping 22 matching lines...) Expand all Loading... |
| 33 if args.gsutil: | 33 if args.gsutil: |
| 34 cmd.extend(['--gsutil', args.gsutil]) | 34 cmd.extend(['--gsutil', args.gsutil]) |
| 35 subprocess.check_call(cmd) | 35 subprocess.check_call(cmd) |
| 36 except subprocess.CalledProcessError: | 36 except subprocess.CalledProcessError: |
| 37 # Trap exceptions to avoid printing two stacktraces. | 37 # Trap exceptions to avoid printing two stacktraces. |
| 38 sys.exit(1) | 38 sys.exit(1) |
| 39 | 39 |
| 40 | 40 |
| 41 if __name__ == '__main__': | 41 if __name__ == '__main__': |
| 42 main() | 42 main() |
| OLD | NEW |