mirror of
https://chromium.googlesource.com/chromium/tools/depot_tools.git
synced 2026-01-11 10:41:31 +00:00
These can just be from not having a network connection. Bug: 887540 Change-Id: Ie025cc278a4633d688bfb34544ecaaacb2df1bad Reviewed-on: https://chromium-review.googlesource.com/1236893 Auto-Submit: Sidney San Martín <sdy@chromium.org> Commit-Queue: Edward Lesmes <ehmaldonado@chromium.org> Reviewed-by: Edward Lesmes <ehmaldonado@chromium.org>
26 lines
479 B
Python
26 lines
479 B
Python
#!/usr/bin/env python
|
|
# Copyright (c) 2018 The Chromium Authors. All rights reserved.
|
|
# Use of this source code is governed by a BSD-style license that can be
|
|
# found in the LICENSE file.
|
|
|
|
import sys
|
|
import urllib2
|
|
|
|
import metrics_utils
|
|
|
|
|
|
def main():
|
|
metrics = raw_input()
|
|
try:
|
|
urllib2.urlopen(metrics_utils.APP_URL + '/upload', metrics)
|
|
except urllib2.HTTPError:
|
|
pass
|
|
except urllib2.URLError:
|
|
pass
|
|
|
|
return 0
|
|
|
|
|
|
if __name__ == '__main__':
|
|
sys.exit(main())
|