From f5bf8dd5029c7e7976cd29193b03e380edc18b36 Mon Sep 17 00:00:00 2001 From: Kristian Bendiksen Date: Thu, 8 Jul 2021 09:13:16 +0200 Subject: [PATCH] #7842 Python: fix undefined variable on version mismatch. The location variable was not defined when creating the error message for version mismatch between rips and application. --- GrpcInterface/Python/rips/instance.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/GrpcInterface/Python/rips/instance.py b/GrpcInterface/Python/rips/instance.py index b541d7e112..cc6fe76e18 100644 --- a/GrpcInterface/Python/rips/instance.py +++ b/GrpcInterface/Python/rips/instance.py @@ -188,7 +188,7 @@ class Instance: # Main version check package self.app = App_pb2_grpc.AppStub(self.channel) - self._check_connection_and_version(self.channel, launched) + self._check_connection_and_version(self.channel, launched, location) # Intercept UNAVAILABLE errors and retry on failures interceptors = ( @@ -211,7 +211,7 @@ class Instance: path = os.getcwd() self.set_start_dir(path=path) - def _check_connection_and_version(self, channel, launched): + def _check_connection_and_version(self, channel, launched, location): connection_ok = False version_ok = False