From mboxrd@z Thu Jan 1 00:00:00 1970 Content-Type: multipart/mixed; boundary="===============3020147245953951762==" MIME-Version: 1.0 From: James Prestwood To: iwd at lists.01.org Subject: [PATCH 09/12] auto-t: wpas.py: allow arbitrary events to be handled Date: Tue, 18 Jan 2022 13:25:09 -0800 Message-ID: <20220118212512.2017977-9-prestwoj@gmail.com> In-Reply-To: 20220118212512.2017977-1-prestwoj@gmail.com --===============3020147245953951762== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable If an event is in response to some command which is returning an unexpected value (unexpected with respect to wpas.py) handle_eow would raise an exception. Specifically with DPP this was being hit when the URI was being returned. --- autotests/util/wpas.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/autotests/util/wpas.py b/autotests/util/wpas.py index 6b845232..c8e65179 100644 --- a/autotests/util/wpas.py +++ b/autotests/util/wpas.py @@ -88,8 +88,6 @@ class Wpas: def handle_eow(): nonlocal key, value, count, event if count =3D=3D 0: - if key is not None or not value: - raise Exception('Bad event name') key =3D 'event' elif key is None: if not value: -- = 2.31.1 --===============3020147245953951762==--