auto-t: properly print wait_for_object_change exception

This commit is contained in:
James Prestwood 2021-04-22 10:37:44 -07:00 committed by Denis Kenzior
parent 1f4d73ab73
commit cb6faed69a
1 changed files with 2 additions and 1 deletions

View File

@ -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):