mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-12-20 19:12:33 +01:00
auto-t: properly print wait_for_object_change exception
This commit is contained in:
parent
1f4d73ab73
commit
cb6faed69a
@ -1064,7 +1064,8 @@ class IWD(AsyncOpAbstract):
|
||||
# If neither the initial or expected condition evaluate the
|
||||
# object must be in another unexpected state.
|
||||
if not eval(from_str) and not eval(to_str):
|
||||
raise Exception('unexpected condition between [%s] and [%s]' % from_str, to_str)
|
||||
raise Exception('unexpected condition between [%s] and [%s]' %
|
||||
(from_str, to_str))
|
||||
|
||||
# Initial condition does not evaluate but expected does, pass
|
||||
if not eval(from_str) and eval(to_str):
|
||||
|
Loading…
Reference in New Issue
Block a user