commit | 25fec6fdce3d93d03fb74161c3504a8667bf5258 | [log] [tgz] |
---|---|---|
author | Kuang-che Wu <kcwu@chromium.org> | Thu Jan 28 12:40:43 2021 +0800 |
committer | Commit Bot <commit-bot@chromium.org> | Thu Jan 28 16:07:14 2021 +0000 |
tree | 4173217186941cf5cbc8b275ea29180c18d822c3 | |
parent | 430c52868e17560e85ffd5be1b25f4e49f0ba79f [diff] [blame] |
bisect-kit: fix some pytype warnings BUG=None TEST=unit test Change-Id: Ic0a5efd5609a9cdc9b12724d93fac5e9c975e6ff Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/bisect-kit/+/2653433 Tested-by: Kuang-che Wu <kcwu@chromium.org> Auto-Submit: Kuang-che Wu <kcwu@chromium.org> Commit-Queue: Zheng-Jie Chang <zjchang@chromium.org> Reviewed-by: Zheng-Jie Chang <zjchang@chromium.org>
diff --git a/bisect_kit/android_util.py b/bisect_kit/android_util.py index 6189dbd..9f7a5f5 100644 --- a/bisect_kit/android_util.py +++ b/bisect_kit/android_util.py
@@ -68,7 +68,7 @@ logger.warning('fetch_android_build_data need to be hooked') try: return urllib.request.urlopen(url).read().decode('utf8') - except urllib.request.URLError as e: + except urllib.error.URLError as e: logger.exception('failed to fetch "%s"', url) raise errors.ExternalError(str(e))