|
@@ -3,6 +3,7 @@
|
|
|
# Use of this source code is governed by a BSD-style license that can be
|
|
|
# found in the LICENSE file.
|
|
|
|
|
|
+import http
|
|
|
import os
|
|
|
import sys
|
|
|
import urllib.error
|
|
@@ -22,7 +23,8 @@ def main():
|
|
|
url=metrics_utils.APP_URL + '/upload',
|
|
|
data=metrics.encode('utf-8'),
|
|
|
headers=headers))
|
|
|
- except (urllib.error.HTTPError, urllib.error.URLError):
|
|
|
+ except (urllib.error.HTTPError, urllib.error.URLError,
|
|
|
+ http.client.RemoteDisconnected):
|
|
|
pass
|
|
|
|
|
|
return 0
|