From 2262c30af35958d7559371272848791c03c8e8d4 Mon Sep 17 00:00:00 2001 From: Marco Inacio Date: Mon, 19 Feb 2024 21:53:47 +0000 Subject: [PATCH] Update tutorial-six-python.md A while loop if necessary here because otherwise if the client receive a message with the wrong correlation_id, then the self.response will be None and there will be Exception due to return int(None) in the next section. --- site/tutorials/tutorial-six-python.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/site/tutorials/tutorial-six-python.md b/site/tutorials/tutorial-six-python.md index 1f378b0923..2171d50768 100644 --- a/site/tutorials/tutorial-six-python.md +++ b/site/tutorials/tutorial-six-python.md @@ -312,7 +312,8 @@ class FibonacciRpcClient(object): correlation_id=self.corr_id, ), body=str(n)) - self.connection.process_data_events(time_limit=None) + while self.response is None: + self.connection.process_data_events(time_limit=None) return int(self.response)