From 450067d343c0702819c293eb67078b12c2a3ff40 Mon Sep 17 00:00:00 2001 From: Jaime Soriano Pastor Date: Thu, 19 Mar 2020 20:48:10 +0100 Subject: [PATCH] Fix compose up retries in python tests (#17120) --- libbeat/tests/system/beat/beat.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libbeat/tests/system/beat/beat.py b/libbeat/tests/system/beat/beat.py index 2ff74db4dc0d..160df982f561 100644 --- a/libbeat/tests/system/beat/beat.py +++ b/libbeat/tests/system/beat/beat.py @@ -160,10 +160,10 @@ def compose_up_with_retries(self): try: self.compose_up() return - except e: + except Exception as e: if i + 1 >= retries: raise e - print("Compose up failed, retrying: " + e) + print("Compose up failed, retrying: {}".format(e)) self.compose_down() def run_beat(self,