tag | ac46023e567e0d2e610c1c1f6ff78689aea07519 | |
---|---|---|
tagger | The Android Open Source Project <initial-contribution@android.com> | Thu Feb 18 09:58:57 2021 -0800 |
object | 6f3199af05779f5373afcc55e2724ad697095c6d |
Android S Preview 1
commit | 6f3199af05779f5373afcc55e2724ad697095c6d | [log] [tgz] |
---|---|---|
author | Maciej Żenczykowski <maze@google.com> | Mon Feb 15 21:04:52 2021 -0800 |
committer | Maciej Żenczykowski <maze@google.com> | Mon Feb 15 21:07:17 2021 -0800 |
tree | cca98857a0dee6694371e16d0e9254e7a5eb5146 | |
parent | de4c8b6a7b62b9e554da08cb18c74765084184c5 [diff] |
net-test: bpf_test - use proper except type As Lorenzo helpfully pointed out: You can just make this be "except socket.error" and get rid of the pylint comment. ... No need to guess, just look at the implementation of LookupMap. It bottoms out at BpfSyscall, which calls MaybeRaiseSocketError, which raises socket.error. Test: gpylint2 bpf.py bpf_test.py Signed-off-by: Maciej Żenczykowski <maze@google.com> Change-Id: Ic6cc0eb794349f09143e23fa14a240b89b9e3010