Bug 1861916 - Don't fail for Protocol attribute errors on Python < 3.10, r=Sasha
commit9972df774a9421ccad820c4601c04e983c961a73
authorJames Graham <james@hoppipolla.co.uk>
Mon, 20 Nov 2023 20:03:26 +0000 (20 20:03 +0000)
committerJames Graham <james@hoppipolla.co.uk>
Mon, 20 Nov 2023 20:03:26 +0000 (20 20:03 +0000)
treec755dfda312e73f8acb5645d9ea7ac0983e8a0bf
parent306a55b22fae75dd4272f5014625538e4dc09398
Bug 1861916 - Don't fail for Protocol attribute errors on Python < 3.10, r=Sasha

We previously tried to skip tracebacks for these failures by checking the obj property
on the error object. But that turns out to only work for recent Python versions, so
on older versions fall back to inspecting the error string to figure out which
object raised the exception. This is a bit of a hack, but it's probably OK to
solve the problem since it only really affects logging.

Differential Revision: https://phabricator.services.mozilla.com/D192829
testing/web-platform/tests/tools/wptrunner/wptrunner/executors/base.py