From c79c9c73fcbf19f90d93d8ce7471d9340f17df46 Mon Sep 17 00:00:00 2001 From: Greg Sanders Date: Fri, 16 Dec 2022 14:17:23 -0500 Subject: [PATCH] Properly raise ValueError message in wait_for --- contrib/pyln-testing/pyln/testing/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/pyln-testing/pyln/testing/utils.py b/contrib/pyln-testing/pyln/testing/utils.py index 50b1c9d84..259869e49 100644 --- a/contrib/pyln-testing/pyln/testing/utils.py +++ b/contrib/pyln-testing/pyln/testing/utils.py @@ -90,7 +90,7 @@ def wait_for(success, timeout=TIMEOUT): while not success(): time_left = start_time + timeout - time.time() if time_left <= 0: - raise ValueError("Timeout while waiting for {}", success) + raise ValueError("Timeout while waiting for {}".format(success)) time.sleep(min(interval, time_left)) interval *= 2 if interval > 5: