From 25817279137c07b1fa2057cae736bd8ca41b6a8f Mon Sep 17 00:00:00 2001 From: Thomas Juerges <203795-tjuerges@users.noreply.gitlab.com> Date: Thu, 12 Aug 2021 13:48:48 +0200 Subject: [PATCH] L2SS-183: Make Jan David happy again v2.0 :-) --- devices/devices/observation_control.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/devices/devices/observation_control.py b/devices/devices/observation_control.py index fb5f4b5a7..9b60f86bb 100644 --- a/devices/devices/observation_control.py +++ b/devices/devices/observation_control.py @@ -393,7 +393,7 @@ class ObservationControl(Device): time.sleep(sleep_time) remaining_wait_time = remaining_wait_time - sleep_time # Check if the observation object is really in OFF state. - if stopped is True: + if stopped: self.info_stream("Successfully stopped the observation with ID={}.".format(obs_id)) else: self.warn_stream("Could not shut down the Observation device (\"{}\") for observation ID={}. This means that there is a chance for a memory leak. Will continue anyway and forcefully delete the Observation object.".format(observation["device_name"], obs_id)) -- GitLab