We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 26a1d24 commit 8dd1f99Copy full SHA for 8dd1f99
upload_metrics.py
@@ -3,6 +3,7 @@
3
# Use of this source code is governed by a BSD-style license that can be
4
# found in the LICENSE file.
5
6
+import http
7
import os
8
import sys
9
import urllib.error
@@ -22,7 +23,8 @@ def main():
22
23
url=metrics_utils.APP_URL + '/upload',
24
data=metrics.encode('utf-8'),
25
headers=headers))
- except (urllib.error.HTTPError, urllib.error.URLError):
26
+ except (urllib.error.HTTPError, urllib.error.URLError,
27
+ http.client.RemoteDisconnected):
28
pass
29
30
return 0
0 commit comments