Commit 4bb3a7d0 authored by Takuto Ikuta's avatar Takuto Ikuta Committed by LUCI CQ

ninjalog_uploader: ignore http.client.RemoteDisconnected

Bug: b/190562569
Change-Id: Iaa8d119ad643e64bdf231fe5ae43ea4daa69996f
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/2947272
Auto-Submit: Takuto Ikuta <tikuta@chromium.org>
Commit-Queue: Fumitoshi Ukai <ukai@google.com>
Reviewed-by: 's avatarFumitoshi Ukai <ukai@google.com>
parent b14cdaeb
...@@ -26,6 +26,7 @@ import subprocess ...@@ -26,6 +26,7 @@ import subprocess
import sys import sys
import time import time
from third_party.six.moves import http_client
from third_party.six.moves.urllib import error from third_party.six.moves.urllib import error
from third_party.six.moves.urllib import request from third_party.six.moves.urllib import request
...@@ -42,7 +43,7 @@ def IsGoogler(server): ...@@ -42,7 +43,7 @@ def IsGoogler(server):
try: try:
resp = request.urlopen('https://' + server + '/should-upload') resp = request.urlopen('https://' + server + '/should-upload')
return resp.read() == b'Success' return resp.read() == b'Success'
except error.URLError: except (error.URLError, http_client.RemoteDisconnected):
return False return False
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment