From c70b4cd023cdedb82e51b0cc494abdc5e76eaec8 Mon Sep 17 00:00:00 2001 From: Bernhard Kaindl Date: Thu, 1 Feb 2024 12:00:00 +0000 Subject: [PATCH] rrdd.py: Python3: Fix crash on failure contacting xcp-rrdd Signed-off-by: Bernhard Kaindl --- ocaml/xcp-rrdd/scripts/rrdd/rrdd.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ocaml/xcp-rrdd/scripts/rrdd/rrdd.py b/ocaml/xcp-rrdd/scripts/rrdd/rrdd.py index 909e9ab20c0..6cb7540dcdf 100644 --- a/ocaml/xcp-rrdd/scripts/rrdd/rrdd.py +++ b/ocaml/xcp-rrdd/scripts/rrdd/rrdd.py @@ -288,7 +288,7 @@ def wait_until_next_reading(self, neg_shift=1): return except socket.error: msg = "Failed to contact xcp-rrdd. Sleeping for 5 seconds .." - print >> sys.stderr, msg + print(msg, file=sys.stderr) time.sleep(5) def update(self):