From dae1f8dc7f5502391ebffc9468d99737118f57c7 Mon Sep 17 00:00:00 2001 From: Saurabh Thakre Date: Wed, 16 Dec 2020 09:45:53 +0530 Subject: [PATCH] Update consumers.py Caught a syntax issue at line number 78, modified the syntax to return correct value of nonce_diff. --- awx/main/consumers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/awx/main/consumers.py b/awx/main/consumers.py index b6d8872ebd..4fc1196dbe 100644 --- a/awx/main/consumers.py +++ b/awx/main/consumers.py @@ -75,7 +75,7 @@ class WebsocketSecretAuthHelper: nonce_diff = now - nonce_parsed if abs(nonce_diff) > nonce_tolerance: logger.warn(f"Potential replay attack or machine(s) time out of sync by {nonce_diff} seconds.") - raise ValueError("Potential replay attack or machine(s) time out of sync by {nonce_diff} seconds.") + raise ValueError(f"Potential replay attack or machine(s) time out of sync by {nonce_diff} seconds.") return True