blob: 2dc3dd448390c601239b34cef2030b9cf6b63913 [file] [log] [blame]
Edward Lemur32e3d1e2018-07-12 00:54:05 +00001#!/usr/bin/env python
2# Copyright (c) 2018 The Chromium Authors. All rights reserved.
3# Use of this source code is governed by a BSD-style license that can be
4# found in the LICENSE file.
5
6import sys
7import urllib2
8
Edward Lemur5ba1e9c2018-07-23 18:19:02 +00009import metrics_utils
Edward Lemur32e3d1e2018-07-12 00:54:05 +000010
11
12def main():
13 metrics = raw_input()
14 try:
Edward Lemur5ba1e9c2018-07-23 18:19:02 +000015 urllib2.urlopen(metrics_utils.APP_URL + '/upload', metrics)
Edward Lemur32e3d1e2018-07-12 00:54:05 +000016 except urllib2.HTTPError:
17 pass
18
19 return 0
20
21
22if __name__ == '__main__':
23 sys.exit(main())