From aeeae560f7826d80f7b32503a81f2b039edb4492 Mon Sep 17 00:00:00 2001 From: Daniel Date: Mon, 28 Oct 2024 09:49:58 +0100 Subject: [PATCH] Avoid unbound Name Error --- srunner/scenariomanager/scenarioatomics/atomic_behaviors.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/srunner/scenariomanager/scenarioatomics/atomic_behaviors.py b/srunner/scenariomanager/scenarioatomics/atomic_behaviors.py index 3904931d7..45d8d4168 100644 --- a/srunner/scenariomanager/scenarioatomics/atomic_behaviors.py +++ b/srunner/scenariomanager/scenarioatomics/atomic_behaviors.py @@ -717,6 +717,8 @@ def terminate(self, new_status): final_speed = master_speed * self._final_speed else: print("'relative_type' must be delta or factor") + self._final_speed_set = True + return super().terminate(new_status) else: final_speed = self._final_speed