From 69c1a1ba7c54144dcbf11e9a34445d70465482aa Mon Sep 17 00:00:00 2001 From: James Prestwood Date: Tue, 22 Feb 2022 14:28:44 -0800 Subject: [PATCH] auto-t: wpas.py: allow arbitrary events to be handled 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 == 0: - if key is not None or not value: - raise Exception('Bad event name') key = 'event' elif key is None: if not value: