From b4b261b918c7f18f835295d492cd59782755a93b Mon Sep 17 00:00:00 2001 From: Ryan Petrello Date: Fri, 1 May 2020 13:51:37 -0400 Subject: [PATCH] fix busted flake8 --- awx/main/dispatch/worker/base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/awx/main/dispatch/worker/base.py b/awx/main/dispatch/worker/base.py index c796e6162e71..b0611676fa45 100644 --- a/awx/main/dispatch/worker/base.py +++ b/awx/main/dispatch/worker/base.py @@ -127,7 +127,7 @@ def run(self, *args, **kwargs): res = json.loads(res[1]) self.process_task(res) except redis.exceptions.RedisError: - time_to_sleep = min(time_to_sleep*2, 30) + time_to_sleep = min(time_to_sleep * 2, 30) logger.exception(f"encountered an error communicating with redis. Reconnect attempt in {time_to_sleep} seconds") time.sleep(time_to_sleep) except (json.JSONDecodeError, KeyError):