mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-11-20 04:19:25 +01:00
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.
This commit is contained in:
parent
50a546705e
commit
69c1a1ba7c
@ -88,8 +88,6 @@ class Wpas:
|
|||||||
def handle_eow():
|
def handle_eow():
|
||||||
nonlocal key, value, count, event
|
nonlocal key, value, count, event
|
||||||
if count == 0:
|
if count == 0:
|
||||||
if key is not None or not value:
|
|
||||||
raise Exception('Bad event name')
|
|
||||||
key = 'event'
|
key = 'event'
|
||||||
elif key is None:
|
elif key is None:
|
||||||
if not value:
|
if not value:
|
||||||
|
Loading…
Reference in New Issue
Block a user